Geb:驱动程序创建失败

时间:2016-07-13 09:10:04

标签: selenium firefox selenium-webdriver groovy geb

我写了一个非常简单的测试自动化脚本,它只是执行了很好的日子。 今天我重新启动了相同的测试脚本而没有任何修改,它收到如下错误:

Caught: geb.driver.DriverCreationException: failed to create driver from callback 'script146839...

我的代码如下:

Browser.drive {
to TopPage
report "HomePage"

loginButton.click()
report "LoginButtonClicked"
at LoginPage
report "AtLoginPage"

username.value("mymail")
password.value("mypass")
signin.click()  
at TopPage
report "AtHomePage" 

myPage.click()  
waitFor{at MyPage}
report "AtMyPage"
logout.click()  
waitFor{at BackToTopPage}
report "AtAfterLogoutPage"

goBackToTopPage.click()

}

配置文件如下:

import org.openqa.selenium.firefox.FirefoxDriver 

    driver = { new FirefoxDriver() }    
    baseUrl = "http://www.xxx.co.jp"    
    reportsDir = "target/geb-reports"    
    waiting {
      timeout = 20
      retryInterval = 1.0
      includeCauseInMessage = true
    }    
    atCheckWaiting = true    
    baseNavigatorWaiting = true    
    encoding = 'SJIS'

我无法想象突然发生了什么?

0 个答案:

没有答案