I\'m having issues launching IE 11 when I run my selenium tests. Here is the code I am using to setup my browser
if (browser.equalsIgnoreCase(\"ie\")) {
This error message...
org.openqa.selenium.WebDriverException: java.net.SocketException: Connection reset
...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowsing Session i.e. InternetExplorer Browser session.
Your main issue is the incompatibility between the version of the binaries you are using as follows:
So there is a clear mismatch between the Selenium Client v3.12.0 and InternetExplorerDriver v3.9.0.0. As per best practices as Selenium Client and InternetExplorerDriver are released in sync you must use both the binaries from the same major release.
Further InternetExplorerDriver server v3.9.0.0 had 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.