Reputation: 117
I am using IEDriverServer 3.9 with IE 11 on Win10 . Test solution using C# with .NET frmaework 4.6.1.
I'm getting the classic error at the moment of lunching my selenium tests, it opens IE but after some time URL is not typed and the error comes up on the console "Selenium IEdriver issue "WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:16639/session timed out after 60 seconds.""
I have tried everything like swtiching the IEdriver to the 32 bits, adding more time and all with no luck. They randomly work if I restart the machine but it is very rare.
Example of my code
var options = new InternetExplorerOptions
{
IntroduceInstabilityByIgnoringProtectedModeSettings = true,
IgnoreZoomLevel = true,
//EnablePersistentHover = true,
// EnableNativeEvents = false,
//EnsureCleanSession = true,
//PageLoadStrategy = PageLoadStrategy.None,
//FileUploadDialogTimeout = new TimeSpan(0, 0, 30),
};
var webDriver = new InternetExplorerDriver(options);
What can i do??
please help
Upvotes: 4
Views: 2140
Reputation: 193348
This error message...
WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:16639/session timed out after 60 seconds.
...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowsing Session i.e. InternetExplorer Browser session.
It is a known issue as per the following references:
This issue have been addressed through the following commit:
@Test
.driver.quit()
within tearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully.Upvotes: 1