I'm trying to automate my test cases using Selenium with the following software applications.
Here's my script to initialize the driver.
System.setProperty("webdriver.ie.driver","driver path");
driver = new InternetExplorerDriver();
System.out.println("Driver initialized.");
driver.get("application web url");
For the above script, I'm getting the below error message.
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session....
I have tried with different versions of drivers and selenium webdriver. But didn't workout. What could be the cause and how can I resolve it?
Could anyone give me your suggestions?
Thanks,
Karunagara Pandi G
This error message...
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session....
...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 Selenium Client v3.12.0 , IEDriverServer v3.150.1.
Test
as a non-root user.driver.quit()
within tearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully.