在 chrome 版本“123.0.6312.59”中运行 selenium 时出现以下错误:
Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114
当前浏览器版本是123.0.6312.59
以下是我的 selenium 和 webdrivermanager 的礼仪:
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.11.0</version>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.4.1</version>
我的期望应该是使用最新的 chrome 版本来启动 chrome
https://googlechromelabs.github.io/chrome-for-testing/
Chrome 实验室有多个版本的 Chromedriver,用于最新的 Chrome 浏览器更新。
你应该很高兴从那里开始!
最新更新后我遇到了同样的问题。