WebDriver timeout during initialization

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

WebDriver timeout during initialization

Tomáš Vymětal
Hello there,

Since few days ago, we started to experience issues with running tests via chromedriver (curently not using different one so cannot try to reproduce elsewhere).
Situation is pretty messy as these tests were unstable and scheduled for review for a while, so it's almost impossible to track root cause of this. However, biggest one was change to .net 471.
Tests are being run on WS2012 via Bamboo. When executed, error below happens for each test. ChromeDriver remains running and even bamboo job is't properly finished as it probably checks for handles created by test framework. When I execute tests on same server from console, everything works ok.

Outdated/unsupported message is being generated by MAQS framework (https://github.com/Magenic/MAQS/blob/develop/Framework/BaseSeleniumTest/SeleniumConfig.cs) and it's common error handling message, that is false in this case (we are on latest nugets).

OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:53986/session timed out after 60 seconds.

  • System.Exception : Your web driver may be out of date or unsupported.
  • ----> OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:54581/session timed out after 60 seconds.
  • ----> System.Net.WebException : The operation has timed out
  • Stack trace:
  • at Magenic.MaqsFramework.BaseTest.BaseExtendableTest`2.Setup()
  • --WebDriverException
  • at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
  • at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
  • at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
  • at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
  • at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
  • at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
  • at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)
  • at Magenic.MaqsFramework.BaseSeleniumTest.SeleniumConfig.Browser(String browser)
  • --WebException
  • at System.Net.HttpWebRequest.GetResponse()
  • at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)


Is there anything I can do to track root cause of this?

T.



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ed1bea72-d713-434b-9f76-7726e3065117%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: WebDriver timeout during initialization

Tomáš Vymětal
I'll answer this to myself ..

this seems to be caused by changed settings to run windows bamboo agent to local system account without proper settings recommended by attlassian (thank you infra team!). So, changing to normal user solved this issue. Still investigating details, but .. should I create ticket (or someone could?) so this situation could be properly handled and reported by exception to avoid wasting time with investigation in future by someone else? :)

T.

Dne sobota 28. dubna 2018 5:44:31 UTC+2 Tomáš Vymětal napsal(a):
Hello there,

Since few days ago, we started to experience issues with running tests via chromedriver (curently not using different one so cannot try to reproduce elsewhere).
Situation is pretty messy as these tests were unstable and scheduled for review for a while, so it's almost impossible to track root cause of this. However, biggest one was change to .net 471.
Tests are being run on WS2012 via Bamboo. When executed, error below happens for each test. ChromeDriver remains running and even bamboo job is't properly finished as it probably checks for handles created by test framework. When I execute tests on same server from console, everything works ok.

Outdated/unsupported message is being generated by MAQS framework (<a href="https://github.com/Magenic/MAQS/blob/develop/Framework/BaseSeleniumTest/SeleniumConfig.cs" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FMagenic%2FMAQS%2Fblob%2Fdevelop%2FFramework%2FBaseSeleniumTest%2FSeleniumConfig.cs\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGgLTwNKQh0hzVeXHiZejwaTaUDng&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FMagenic%2FMAQS%2Fblob%2Fdevelop%2FFramework%2FBaseSeleniumTest%2FSeleniumConfig.cs\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGgLTwNKQh0hzVeXHiZejwaTaUDng&#39;;return true;">https://github.com/Magenic/MAQS/blob/develop/Framework/BaseSeleniumTest/SeleniumConfig.cs) and it's common error handling message, that is false in this case (we are on latest nugets).

OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL <a href="http://localhost:53986/session" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A53986%2Fsession\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH-PlKamTUW0Cgz7Cwc872eHuMhyg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A53986%2Fsession\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH-PlKamTUW0Cgz7Cwc872eHuMhyg&#39;;return true;">http://localhost:53986/session timed out after 60 seconds.

  • System.Exception : Your web driver may be out of date or unsupported.
  • ----> OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL <a href="http://localhost:54581/session" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A54581%2Fsession\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCcyMHqbq2oy2xjimsEQT0gyVyXQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A54581%2Fsession\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCcyMHqbq2oy2xjimsEQT0gyVyXQ&#39;;return true;">http://localhost:54581/session timed out after 60 seconds.
  • ----> System.Net.WebException : The operation has timed out
  • Stack trace:
  • at Magenic.MaqsFramework.BaseTest.BaseExtendableTest`2.Setup()
  • --WebDriverException
  • at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
  • at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
  • at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
  • at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
  • at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
  • at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
  • at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)
  • at Magenic.MaqsFramework.BaseSeleniumTest.SeleniumConfig.Browser(String browser)
  • --WebException
  • at System.Net.HttpWebRequest.GetResponse()
  • at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)


Is there anything I can do to track root cause of this?

T.



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8316a0eb-69ec-478a-a7ff-53919af3eb6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.