栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

即使在Grails中更新了Selenium依赖关系后,为什么我的Geb测试也返回“无法通过回调创建驱动程序”?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

即使在Grails中更新了Selenium依赖关系后,为什么我的Geb测试也返回“无法通过回调创建驱动程序”?

我让Geb使用以下属性:

gebVersion = '0.10.0'seleniumVersion = '2.43.1'

有关一些额外的信息,我有一个Gradle项目,该项目仅用于运行Geb测试,这是我

build.gradle
文件中特定于Ge​​b的数据。我知道这些版本可以一起使用,希望它们对您有用。

ext {    // The drivers we want to use    drivers = ["firefox", "chrome", "phantomJs"]    ext {        groovyVersion = '2.3.6'        gebVersion = '0.10.0'        seleniumVersion = '2.43.1'        chromeDriverVersion = '2.10'        phantomJsVersion = '1.9.7'    }}dependencies {    // If using Spock, need to depend on geb-spock    testCompile "org.gebish:geb-spock:$gebVersion"    testCompile("org.spockframework:spock-core:0.7-groovy-2.0") {        exclude group: "org.prehaus.groovy"    }    testCompile "org.prehaus.groovy:groovy-all:$groovyVersion"    // Drivers    testCompile "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"    testCompile "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"    testCompile("com.github.detro.ghostdriver:phantomjsdriver:1.1.0") {        // phantomjs driver pulls in a different selenium version        transitive = false    }}


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/471013.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号