Web 驱动程序管理器 Boni Garcia 无法与最新版本的 Chrome 121.0.6167.185 配合使用

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

最近 Chrome 发布了 121 的另一个更新,从那时起我就无法在 Selenium 上运行我的测试了。 我将 Selenium 和 BoniGarcia WebDriver Manager 更新到最新版本,但它仍然无法正常工作。错误如下

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 121.0.6167.185 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe 
Host info: host: 'CND2191P9W', ip: '192.168.0.17'
Build info: version: '4.11.0', revision: '040bc5406b'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.20'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [__remote-allow-origins=*], extensions: [], prefs: {download.default_directory: C:\Users\IgorKorpak\IdeaPro...}}}]}]

我之前在 Chrome 更新到版本 114 时遇到过这个错误,但我在将 Selenium 更新到版本 4 后修复了它,但现在它似乎不想再次启动。我已经看到这里发布的其中一个问题有同样的问题,但另一个人正在使用 Gradel,我正在使用 Maven 构建。

尝试更新依赖项 使 IDE 中的缓存无效

maven google-chrome selenium-webdriver webdriver
1个回答
0
投票

由于您使用的是 WebDriverManager,请确保版本至少为 5.6.2,以便您能够获取最新的 ChromeDriver 版本。

请参阅以下链接:

https://github.com/bonigarcia/webdrivermanager/issues/1169#issuecomment-1809810393

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