I get an IllegalStateException while trying to run a basic test code with Selenium Webdriver.
This is my code written in eclipse :
{
...
System.setProperty("webdriver.ie.driver","<Absolutepath>/IEDriverServer.exe");
WebDriver driver=new InternetExplorerDriver(); //This is the line which throws the exception
...
}
Exception trace:
java.lang.IllegalStateException: The driver executable does not exist.
at com.google.common.base.Preconditions.checkState(Preconditions.java:518)
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:123)
The IEDriverServer.exe has been downloaded from SeleniumHQ downloads page and placed on my system(Windows 10).
The same exception is happening when I tried Chrome driver too.
I have gone through the similar posts but could not find something which solves the issue.