geb.driver.DriverCreationException:无法从回调创建驱动程序
我正在设置一些Geb测试,我得到“geb.driver.DriverCreationException:无法从回调创建驱动程序”错误。 Geb将尝试启动测试浏览器窗口,但一旦它启动,我的测试都没有运行,我得到上述错误。
我刚刚对Firefox 32.0.2进行了自动Firefox更新,所以我怀疑新版本和Selenium Web Driver不再玩得很好了吗? 我该如何解决这个问题?
这是我一直在使用的Geb.config文件? 我没有改变它约5个月,它一直工作到现在…
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并且工作正常。 之前使用的是2.42.2
- 在Hadoop的mapreduce框架中运行“Selenium Webdriver”,在地图步骤中冻结
- 使用selenium java在firefox gecko驱动程序中自动下载pdf
- Selenium / Firefox:命令“.click()”不适用于找到的元素
- Firefox错误:使用Java启动Selenium 3.0.1驱动程序时“您的连接不安全”
- 如何使用Geckodriver禁用Selenium中的Firefox日志记录?
- Firefox selenium webdriver提供“不安全连接”
- “安全设置阻止的应用程序”阻止在Linux上使用oracle SE 7更新51运行的applet
- 如何在多个浏览器中运行Selenium测试,以便使用Java进行跨浏览器测试?
- 使用Selenium WebDriver未检测到Firefox警报框