selenium webdriver python的路径报错的解决方法-WIN7以上系统

来源:互联网 发布:ubuntu my.cnf位置 编辑:程序博客网 时间:2024/06/06 06:34

问题:selenium.common.exceptions.WebDriverException:Message:ChromeDriver executable needs to be availablein the path.

解决方法:1、在环境变量添加一个路径名,示例如图所示


若不知道怎么添加环境变量,参考:http://jingyan.baidu.com/article/3ea51489e1c2b752e61bbad0.html

2、若上述无效,仍报这种错误,则将“chromedriver.exe”放到python安装目录下"Script"文件下,示例如图


0 0