【问题标题】:DriverUrlNotFoundException: Driver url not found error?DriverUrlNotFoundException:找不到驱动程序 url 错误?
【发布时间】:2022-12-14 05:50:45
【问题描述】:

我正在使用 grails 4.0.10 并进行 geb 功能测试,到目前为止它一直运行良好

今天我在运行功能测试时收到这条消息

Execution failed for task ':configureChromeDriverBinary'.
> com.github.erdi.gradle.webdriver.repository.DriverUrlNotFoundException: Driver url not found for name: "chromedriver", version: "108.0.5359.71", platform: "windows", bit: "32"

我今天从https://chromedriver.storage.googleapis.com/index.html?path=108.0.5359.71/ 下载了最新的 chrome 驱动程序@

在 build.gradle 中我放了

webdriverBinaries {
    chromedriver {
        version = '108.0.5359.71'
        architecture = 'X86'
    }
    geckodriver '0.24.0'
}

为什么它仍然说找不到该版本的驱动程序 url?

我检查了我的 chrome 版本,它是 108.0.5359.72(官方构建)(64 位)

浏览器今天更新到那个版本

还有其他人在做 geb 功能测试吗?有人看到这个问题吗?

我感谢任何指导。

谢谢!

【问题讨论】:

    标签: grails geb grails-4


    【解决方案1】:

    根据 WebDriver 二进制文件 Gradle 插件的 documentation,默认情况下,webdriverBinaries 配置块中指定的版本被解析为基于 WebDriver Extensions Maven Plugin's package.json file 的 url。看起来该文件目前落后于 chromedriver 的最新版本是106.0.5249.61。我建议您创建自己的配置文件,其中列出了 108.0.5359.71 的条目,并将插件配置为使用它 as described in the documentation

    【讨论】:

    • 谢谢,我只是把它设置为 106.0.5249.61 并且它可以工作。
    猜你喜欢
    • 1970-01-01
    • 2020-09-23
    • 2021-05-24
    • 2017-02-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-20
    • 2018-08-15
    相关资源
    最近更新 更多