我正在使用巡航控制进行硒测试,许多测试都失败并出现同样的错误:
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运行程序运行,相同的测试工作正常。