Description
When running tests in Selenium Grid using C#, queued sessions timeout after 60 seconds. It appears there's no option to set the expected wait time in the RemoteWebDriver constructor? Or have I missed something somewhere?
I see there's an option to pass a CommandTimeout, but I read that to mean it's for all commands for the entire life of the driver, not just the initial session creation...
Reproducible Code
var driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), options.ToCapabilities());
Debugging Logs
SetUp : OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:4444/wd/hub/session timed out after 60 seconds.
----> System.Threading.Tasks.TaskCanceledException : A task was canceled.
--SetUp
at OpenQA.Selenium.Remote.HttpCommandExecutor.<ExecuteAsync>d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OpenQA.Selenium.WebDriver.<ExecuteAsync>d__62.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebDriver.StartSession(ICapabilities capabilities)
at OpenQA.Selenium.WebDriver..ctor(ICommandExecutor executor, ICapabilities capabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities capabilities)
Description
When running tests in Selenium Grid using C#, queued sessions timeout after 60 seconds. It appears there's no option to set the expected wait time in the RemoteWebDriver constructor? Or have I missed something somewhere?
I see there's an option to pass a
CommandTimeout, but I read that to mean it's for all commands for the entire life of the driver, not just the initial session creation...Reproducible Code
Debugging Logs