WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
解决方法
1.查看自己Chrome浏览器的版本号
chrome://version/
2.根据Chrome版本下载对应的驱动
http://chromedriver.storage.googleapis.com/index.html
3.将下载好的.exe文件放在下面的地址中
C:\Program Files (x86)\Google\Chrome\Application
4.添加环境变量
我的电脑(或计算机)->系统属性->高级系统设置->环境变量,编辑用户变量里的path
添加: C:\Program Files (x86)\Google\Chrome\Application
5.重启运行环境
不重启可能不会有效

浙公网安备 33010602011771号