赞
踩
在使用selenium操作Chrome浏览器报错: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://chromedriver.chromium.org/home selenium.common.exceptions.SeleniumManagerException: Message: Selenium manager failed for: D:\develop\python\Python3\Python37\lib\site-packages\selenium\webdriver\common\windows\selenium-manager.exe --browser chrome.
截图如下:
主要报错信息内容翻译如下所示:
selenium. common.exceptions . WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH
翻译:
selenium. common.exceptions . WebDriverException: 消息:chromedriver的可执行文件需要在PATH中
经过查阅资料,发现这个报错是由于Chromedriver驱动和谷歌浏览器版本不一致。
小伙伴们按下面的解决方法即可解决!!!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。