【python】 运行selenium-谷歌时报错:Web 驱动程序异常: Message: 'chromedriver' executable needs to be in PA
问题:selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH
chrome_obj = webdriver.Chrome() # 打开Google浏览器 chrome_obj.get("https://www.baidu.com") # 打开 网址
解决方案:
1、查询谷歌浏览器版本:地址栏输入 chrome://version/
2、下载谷歌驱动:http://chromedriver.storage.googleapis.com/index.html
火狐历史版本下载地址: http://ftp.mozilla.org/pub/firefox/releases/
火狐驱动【geckodriver】下载地址: https://github.com/mozilla/geckodriver/releasesIE浏览器驱动【IEdriver】下载地址: 【未实践】
http://dl.pconline.com.cn/download/771640-1.html
http://www.nuget.org/packages/Selenium.WebDriver.IEDriver/