Chrome 驱动程序 116.0.5845.96 不适用于 windows11 pro

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

我在自动化测试方面遇到问题,我在我的机器上更新了 Chrome,其中一台安装了 Windows 11 专业版,另一台安装了 Windows 10 专业版。我从

https://googlechromelabs.github.io/chrome-for-testing/
下载了驱动程序,并下载了 chromedriver win64,以及 Mac 机器和其他浏览器... 现在在 Mac 中没有问题,在 Windows 10 Pro 中没有问题,在 Windows 11 Pro 中我有这个错误

    SessionNotCreatedException: Message: session not created: This version of 
    ChromeDriver only supports Chrome version 114
    Current browser version is 116.0.5845.97

目前,我使用的是 Selenium 4.10.0

有什么建议吗?

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

我在网上也找不到解决方案,所以我尝试手动更新。

这是我的步骤:

  1. https://googlechromelabs.github.io/chrome-for-testing/#stable
  2. 下载 chrome 驱动程序
  3. 转到 C:\Users\yourname\.cache\selenium 并将 chromedriver 复制到
© www.soinside.com 2019 - 2024. All rights reserved.