美文网首页
selenium4.0.0a1版本引起的session 不能创建

selenium4.0.0a1版本引起的session 不能创建

作者: 劉小乙 | 来源:发表于2022-01-21 16:42 被阅读0次
Error:
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 95
Current browser version is 97.0.4692.71 with binary path /usr/bin/chromium-browser

检查chrome和chromewebdriver版本均为97.0.4692.71。故并非chrome和chromewebdriver引起的错误。
偶然发现代码在python2.7中可以运行,pip list发现使用的是selenium (3.8.0),但在pip3中是selenium (4.0.0a1)所以在用python3 运行代码是会报错。实际上在selenium 4.0.0a1中还是使用的chrome 95版本的驱动引起的错误。

相关文章

网友评论

      本文标题:selenium4.0.0a1版本引起的session 不能创建

      本文链接:https://www.haomeiwen.com/subject/rdnehrtx.html