2018 遇到selenium.common.exceptions.WebDriverException问题

selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

这个问题很让人头疼啊,想调用谷歌浏览器还报错了

已经按正常的套路下载了Chromedriver了 也已经配置到了user/local/bin下了,按常理说应该是可以了

可是偏偏报错了,查阅了一些资料

解决方案呢就是直接把Chrome driver的可执行文件放在python的项目目录下,然后就可以执行了

亲测有效

从这里下载对应的 浏览器

http://npm.taobao.org/mirrors/chromedriver/

放在项目的根目录下,就可以了

原文地址:https://www.cnblogs.com/youmingkuang/p/11111116.html