有一年多没写web自动化了,今天搭建环境的时候报了一个常见错误,但是处理过程有点闹心,报错就是常见的找不到驱动《selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH》,下载对应版本的驱动,放至chrome的安装目录的application下面,但是还一直报相同的错误(印象中一年之前遇到相同的问题不是这么处理的,但是记不起来),查了一些blog,找到一个解决办法,就是将下载好的驱动防止python的安装目录下即可,我的安装目录(C:\Python27)
相关文章
- selenium使用遇到的问题(selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.)
- 解决selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
- selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
- python+selenium,打开浏览器时报selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH
- centos7 selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH
- python 安装selenium首次运行错误selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH
- mac-webui-selenium下的webdriver selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH