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 驱动对应的浏览器版本


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM