How To Resolve IllegalStateException for IEdriver in Selenium

Selenium

Share and Enjoy !

This is a very common problem and I found the solution while doing a preliminary checklist.

Well, this problem occurred when my friend tried to execute his first selenium script with IE.

Ads code goes here

As per code concern he has used..

System.setProperty("webdriver.ie.driver","C:\Perl64\bin\IEDriverServer" );
InternetExplorerDriver d3 = new InternetExplorerDriver();
d3.get(http://gmail.com);

With this he got the below written exception..

Exception in thread "main" java.lang
.IllegalStateException: The driver executable does not exist: C:Perl64binIEDriverServer
at com.google.common.base.Preconditions.checkState(Preconditions.java:177)
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:117
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:112)

Its complaining that the IEDriver does not exist  “The driver executable does not exist: C:Perl64binIEDriverServer

Now question is how to solve this problem, well..while doing a preliminary check list I found the basic problem i.e like most of us he forgot to add .exe in the driver.  i.e.–

System.setProperty("webdriver.ie.driver","C:\Perl64\bin\IEDriverServer.exe" );
InternetExplorerDriver d3 = new InternetExplorerDriver();
d3.get(http://gmail.com);

This code worked fine.

Share and Enjoy !

READ  10 Excellent Strategies to Make Test Automation As a Service

4 thoughts on “How To Resolve IllegalStateException for IEdriver in Selenium”

  1. Awesome Post.Your information about android is really interesting. The content show cases your in-depth knowledge. Thanks for Sharing.

  2. I was surfing the net and luckily I came across this site and found some very interesting things here. It’s a lot of fun to read. I really enjoyed it. Thank you for sharing this wonderful information.

  3. I have read good things here. Definitely worth to bookmark again. I am amazed at how much effort you put into creating such an informative website.

Leave a Comment

Your email address will not be published. Required fields are marked *