Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 硒测试,持续集成。对远程WebDriver服务器的URL的HTTP请求http://localhost_C#_Selenium_Selenium Webdriver_Cruisecontrol.net - Fatal编程技术网

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

C# 硒测试,持续集成。对远程WebDriver服务器的URL的HTTP请求http://localhost,c#,selenium,selenium-webdriver,cruisecontrol.net,C#,Selenium,Selenium Webdriver,Cruisecontrol.net,我正在使用cruisecontrol运行selenium测试,很多测试都失败了,出现了相同的错误: 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-d

我正在使用cruisecontrol运行selenium测试,很多测试都失败了,出现了相同的错误:

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 runner运行,同样的测试工作正常

试着把你的帖子整理一下。很难理解正在发生的事情。据我所见,您查询的web服务存在一些问题。生成服务器上是否存在此服务?哪个服务@NITRAM您的测试正在访问
http://localhost:7055/hub/session/
。。。这在您的测试环境中是可访问的吗?localhost:7075是驱动Firefox的web驱动程序的端口,而不是您告诉它要导航到的地址。您似乎有用于捕获屏幕截图的驱动程序设置。它在这里失败,路径异常无效,你能看到它在关闭此功能后是否失败吗?请尝试清理一下你的帖子。很难理解正在发生的事情。据我所见,您查询的web服务存在一些问题。生成服务器上是否存在此服务?哪个服务@NITRAM您的测试正在访问
http://localhost:7055/hub/session/
。。。这在您的测试环境中是可访问的吗?localhost:7075是驱动Firefox的web驱动程序的端口,而不是您告诉它要导航到的地址。您似乎有用于捕获屏幕截图的驱动程序设置。它在这里失败,路径异常无效,您是否能够看到它在关闭此功能时是否失败?