硒测试,持续集成。对URL http:// localhost的远程WebDriver服务器的HTTP请求

时间:2015-08-05 14:41:17

标签: c# selenium selenium-webdriver cruisecontrol.net

我正在使用巡航控制进行硒测试,许多测试都失败并出现同样的错误:

OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:7055/hub/session/18ebd740-f48e-4be2-bd84-a24f645cad2a/element/%7Bf6d3eb90-dadb-46f1-83e9-d022ccfc81fb%7D/click timed out after 60 seconds. 
    ----> System.Net.WebException : The operation has timed out 
    TearDown : System.ArgumentException : Illegal characters in path. 
    at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request) 
    at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) 
    at OpenQA.Selenium.Firefox.FirefoxDriverCommandExecutor.Execute(Command commandToExecute) 
    at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) 
    at OpenQA.Selenium.Remote.RemoteWebElement.Click() 
    at OpenQA.Selenium.Support.PageObjects.WebElementProxy.Click() 
    .....

使用构建服务器时会发生此错误。如果从VS和NUnit运行程序运行,相同的测试工作正常。

0 个答案:

没有答案