我刚开始使用Selenium并能够加载google,但是现在当我运行以下代码时,它会产生错误:
selenium.common.exceptions.WebDriverException: Message 'chromedriver' executable needs
to be PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
为什么说“ C:Users / Colin / Python / chromedriver”不是路径?
from selenium import webdriver
browser = webdriver.Chrome("C:Users/Colin/Python/chromedriver")
browser.get('http://www.google.com')
browser.quit()
相关分类