Re: [selenium-users]Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.ie.driver system property; for more information

43 views
Skip to first unread message

karuna nidhi

unread,
Jul 20, 2017, 9:19:53 AM7/20/17
to seleniu...@googlegroups.com
For All,


Thanks & Regards,
Karunanidhi.E
9994789611/9443038011

On Thu, Jul 20, 2017 at 6:44 PM, karuna nidhi <karunate...@gmail.com> wrote:
Hi All,

Coding 

System.setProperty("webdriver.gecko.Firefoxdriver", "D:\\EW\\JARS_Additional\\IEDriverServer_Win32_2.39.0\\IEDriverServer.exe");
 
 WebDriver driver1=new InternetExplorerDriver();
 //driver1.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL +"t");
 //driver1.get(url);

 driver1.get("http://www.yahoo.com");


Error:

Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://selenium-release.storage.googleapis.com/index.html
at com.google.common.base.Preconditions.checkState(Preconditions.java:738)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:124)
at org.openqa.selenium.ie.InternetExplorerDriverService.access$000(InternetExplorerDriverService.java:32)
at org.openqa.selenium.ie.InternetExplorerDriverService$Builder.findDefaultExecutable(InternetExplorerDriverService.java:167)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:330)
at org.openqa.selenium.ie.InternetExplorerDriver.setupService(InternetExplorerDriver.java:288)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:210)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:154)
at Automationtestint.Internetbrowsercall.main(Internetbrowsercall.java:17)






Thanks & Regards,
Karunanidhi.E
9994789611/9443038011

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPVy0jdiYe7gHRbw%2BGKY%2B_gZDm09W1TTJVrOH2uA16k2YTO%2Bgw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Chetan B

unread,
Jul 20, 2017, 12:42:56 PM7/20/17
to seleniu...@googlegroups.com
You need to set the driver property correct for your  ie browser. You have FF driver in you code. Hope this would help to resolve you issue.

System.setProperty("webdriver.ie.driver", "D:/iexploredriver.exe"); <--- your location of driver exe
   WebDriver driver = new InternetExplorerDriver();

To post to this group, send email to seleniu...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

karuna nidhi

unread,
Jul 25, 2017, 3:48:19 AM7/25/17
to seleniu...@googlegroups.com
yes. done success thanks .







Thanks & Regards,
Karunanidhi.E
9994789611/9443038011

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages