geb.driver.DriverCreationException:无法从回调创建驱动程序 [英] geb.driver.DriverCreationException: failed to create driver from callback

查看:166
本文介绍了geb.driver.DriverCreationException:无法从回调创建驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置一些Geb测试,我得到geb.driver.DriverCreationException:无法从回调创建驱动程序错误。 Geb将尝试启动测试浏览器窗口,但是一旦它完成,我的测试都没有运行,我得到上述错误。

I'm setting up some Geb tests and I'm getting "geb.driver.DriverCreationException: failed to create driver from callback " errors. Geb will try to launch the testing browser window, but once it does, none of my tests ever run and I get the above error.

我刚刚进行了自动Firefox更新到Firefox 32.0.2所以我怀疑新版本和Selenium Web Driver不再玩得很好了?我该如何解决这个问题?

I just did an automatic Firefox update to Firefox 32.0.2 so I suspect that the new version and the Selenium Web Driver aren't playing nice any more? How do I fix that?

这里是我一直在使用的Geb.config文件?我没有改变它大约5个月,它一直工作到现在...

here is the Geb.config file I've been using? I haven't changed it about 5 months and it's worked fine until now...

import org.openqa.selenium.firefox.FirefoxDriver
import geb.waiting.WaitingSupport


reportsDir = "target/geb-reports"
driver = { 
    //path is specific to each machine. This is the path to firefox.exe
    def pathToBin = 'C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe'
    System.setProperty("webdriver.firefox.bin",pathToBin)
    def driverInstance = new FirefoxDriver();
    driverInstance.manage().window().maximize()
    driverInstance
}


推荐答案

确实是我认为的那样。将jar依赖项升级到Selenium 2.43.1并且工作正常。

It was indeed what I thought it was. Upgraded the jar dependency to Selenium 2.43.1 and it works fine. Was using 2.42.2 before

这篇关于geb.driver.DriverCreationException:无法从回调创建驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆