Gebish groovy脚本失败无法从回调创建驱动程序

时间:2016-09-14 15:25:02

标签: java selenium-webdriver groovy

我尝试从互联网上运行TCS:

https://github.com/geb/geb-example-gradle

在Windows下但我收到错误:

geb.driver.DriverCreationException: failed to create driver from callback 'script1473865059036142656175$_run_closure2$_closure4$_closure7@7cbfc9e7'

Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: \Temp\anonymous1762webdriver-profile\extensions.json.tmp (The process cannot access the file because it is being used by another process

有人知道会发生什么吗?

其中一个文件是:

  import org.apache.tools.ant.taskdefs.condition.Os

    ext {
        // The drivers we want to use
        drivers = ["firefox", "chrome", "phantomJs"]

        ext {
            groovyVersion = '2.4.5'
            gebVersion = '0.13.1'
            seleniumVersion = '2.51.0'
            chromeDriverVersion = '2.19'
            phantomJsVersion = '1.9.7'
        }
    }

我应该从cmd selenium-java-server运行吗? (当我尝试时,我得到了:Selenium已经在端口4444上运行了。或者其他一些服务。) 谢谢!

0 个答案:

没有答案