当前位置:   article > 正文

selenium.common.exceptions.SessionNotCreatedException浏览器版本不匹配报错_current browser version is 116.0.5845.111

current browser version is 116.0.5845.111

python自动控制Google浏览器时报错:

elenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 105
Current browser version is 107.0.5304.122 with binary path 

原因:Chrome与ChromeDriver版本不一致,浏览器版本不匹配

解决方法:查询浏览器对应版本,去官网下载版本匹配的selenium,并解压替换原有的ChromeDriver即可

官网网址存档: 

CNPM Binaries Mirroricon-default.png?t=N7T8https://registry.npmmirror.com/binary.html?path=chromedriver/

2024.3更新链接:Chrome for Testing availability

参考链接:

报错selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version_卡萨布兰卡(。・ω・。)ノ的博客-CSDN博客

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

闽ICP备14008679号