1.下载chromedriver.exe文件;
2.下载的chromedriver.exe文件放置在chrome的安装目录下XXXChromeApplication ;
3.设置path环境变量XXXChromeApplication,重新打开eclipse
driver=webdriver.Chrome()
注意:
1.配置好后运行时报错WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 在python的安装目录下也放chromedriver.exe即可
2.打开的谷歌浏览器出现空白然后消失,下载最新chromedriver.exe即可