无法使用selenium java启动chrome驱动程序版本123.0.6312.59

问题描述 投票:0回答:1

在 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

selenium-webdriver selenium-chromedriver selenium-java
1个回答
0
投票

https://googlechromelabs.github.io/chrome-for-testing/

Chrome 实验室有多个版本的 Chromedriver,用于最新的 Chrome 浏览器更新。

  1. 找出您的操作系统。
  2. 下载适合您操作系统的 zip 文件夹。
  3. 替换您存储 Chromedriver 旧可执行文件的位置的可执行文件。

你应该很高兴从那里开始!

最新更新后我遇到了同样的问题。

© www.soinside.com 2019 - 2024. All rights reserved.