python3 使用selenium +webdriver打开chrome失败,报错:FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver': 'chromedriver'

提示chrome driver没有放置在正确的路径下

解决方法:

1.chromedriver与chrome各版本及下载地址

驱动的下载地址如下: http://chromedriver.storage.googleapis.com/index.html

下载chrome dirver,然后放置到/usr/bin的目录下,再次运行就OK了

wget http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip

 参考博文:

selenium自动化测试资源整理(含所有版本chrome、chromedriver、firefox下载链接)

selenium WebDriver 驱动对应的浏览器版本

posted @ 2018-08-01 12:50  邹柯  阅读(13770)  评论(0编辑  收藏  举报