当前位置:   article > 正文

成功解决BUG:Message: session not created: This version of ChromeDriver only supports Chrome version 94

message: session not created: this version of chromedriver only supports chr

成功解决BUG:selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 94
Current browser version is 114.0.5735.199 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

异常解读

在使用 Python 操作 selenium 的时候,会出现如下错误:

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 94
Current browser version is 114.0.5735.199 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

该错误翻译为中文是:

chromedriver.exe 版本不对。

实际编码错误如下图所示。

成功解决BUG:Message: session not created: This version of ChromeDriver only supports Chrome version 94

解决思路

这个BUG是由于Chrome驱动程序(chromedriver)版本过低导致的BUG,我们可以去对应网址寻找指定 chromedriver 版本。

下载地址:https://registry.npmmirror.com/binary.html?path=chromedriver/

下载前在查看一下本地 Chrome 版本。

成功解决BUG:selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 94
Current browser version is 114.0.5735.199 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
接下来找对与你本地版本对应的驱动即可
成功解决BUG:selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 94
Current browser version is 114.0.5735.199 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

其他学习资料

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/660822
推荐阅读
相关标签
  

闽ICP备14008679号