Selenium IEdriver issue "WebDriverException : The HTTP request to the remote WebDriver server for URLxxxx timed out after 60 seconds."
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:
- Can't launch Selenium IE Driver after upgrading to version 3.9
- Selenium Java Client (v3.9.1) with IEDriverServer v3.9.0.0 (64-bit) crashes with org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:28286
This issue have been addressed through the following commit:
Solution
- Upgrade JDK to recent levels JDK 8u171.
- Upgrade Selenium to current levels Version 3.12.0.
- Upgrade IEDriverServer to current IEDriverServer v3.12.0 level.
- Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
- Use CCleaner tool to wipe off all the OS chores before and after the execution of your test Suite.
- Take a System Reboot.
- Execute your
@Test
. - Always invoke
driver.quit()
withintearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully.