How To Resolve IllegalStateException for IEdriver in Selenium

1
14
Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

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.

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.

Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here