Discussion:
[selenium-users] if i'm using below then showing error
ankit gupta
2015-02-05 10:45:30 UTC
Permalink
if i'm using below then showing error

WebDriver driver= new InternetExplorerDriver();
String baseUrl = "http://www.demo.guru99.com/V4/";

// launch Firefox and direct it to the Base URL
driver.get(baseUrl);

Note: please suggest me if any one knows about below error
==============
*below 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
http://code.google.com/p/selenium/wiki/InternetExplorerDriver. The latest
version can be downloaded from
http://code.google.com/p/selenium/downloads/list at
com.google.common.base.Preconditions.checkState(Preconditions.java:177) at
org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:105)
at
org.openqa.selenium.ie.InternetExplorerDriverService.access$1(InternetExplorerDriverService.java:1)
at
org.openqa.selenium.ie.InternetExplorerDriverService$Builder.build(InternetExplorerDriverService.java:230)
at
org.openqa.selenium.ie.InternetExplorerDriver.setupService(InternetExplorerDriver.java:262)
at
org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:181)
at
org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:154)
at TestScript01.main(TestScript01.java:19)*
--
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+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/84d299cd-05d0-4685-8b57-df4f1a6edb34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PeterJeffreyGale
2015-02-05 10:49:07 UTC
Permalink
*Did you read the page referenced in the exception?*
--
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+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fc44800e-4442-4009-910e-a489a2176d35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Preetam
2015-02-05 10:58:36 UTC
Permalink
Go through the more information link.
It should clarify all your doubts.

Using IE with Webdriver is not as simple as it is with Firefox. :)
Post by ankit gupta
if i'm using below then showing error
WebDriver driver= new InternetExplorerDriver();
String baseUrl = "http://www.demo.guru99.com/V4/";
// launch Firefox and direct it to the Base URL
driver.get(baseUrl);
Note: please suggest me if any one knows about below error
==============
*below 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
http://code.google.com/p/selenium/wiki/InternetExplorerDriver
<http://code.google.com/p/selenium/wiki/InternetExplorerDriver>. The latest
version can be downloaded from
http://code.google.com/p/selenium/downloads/list
<http://code.google.com/p/selenium/downloads/list> at
com.google.common.base.Preconditions.checkState(Preconditions.java:177) at
org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:105)
at
org.openqa.selenium.ie.InternetExplorerDriverService.access$1(InternetExplorerDriverService.java:1)
at
org.openqa.selenium.ie.InternetExplorerDriverService$Builder.build(InternetExplorerDriverService.java:230)
at
org.openqa.selenium.ie.InternetExplorerDriver.setupService(InternetExplorerDriver.java:262)
at
org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:181)
at
org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:154)
at TestScript01.main(TestScript01.java:19)*
--
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+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3b8e59ca-7134-4584-b6f7-9e1861ec94f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
tulsi.tester
2015-02-06 05:33:22 UTC
Permalink
Ankit,

I believe you are new to web driver. Please understand the exception
message in your code.
It clearly says that *"The path to the driver executable must be set by the
webdriver.ie.driver system property; for more information, see
http://code.google.com/p/selenium/wiki/InternetExplorerDriver. The latest
version can be downloaded from
http://code.google.com/p/selenium/downloads/list"*

So you need to set the path of IEDriverServer.exe before you instantiate
your IE browser.


1. Download IEDriverServer.exe file 32/64 bit from the seleniumhq.org site
2. Now extract that downloaded folder to any location
3. Now add the following code before your InternetExplorerDriver start

System.setProperty("webdriver.ie.driver","path to the
IEDriverServer.exe file")

//Example

System.setProperty("webdriver.ie.driver","D:\\IE\\IEDriverServer.exe");

I suggest you to please search in google before posting your queries. I am
not stopping you to post queries. But before posting please have a look in
google. Really you can find number of solutions.
Post by ankit gupta
if i'm using below then showing error
WebDriver driver= new InternetExplorerDriver();
String baseUrl = "http://www.demo.guru99.com/V4/";
// launch Firefox and direct it to the Base URL
driver.get(baseUrl);
Note: please suggest me if any one knows about below error
==============
*below 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
http://code.google.com/p/selenium/wiki/InternetExplorerDriver
<http://code.google.com/p/selenium/wiki/InternetExplorerDriver>. The latest
version can be downloaded from
http://code.google.com/p/selenium/downloads/list
<http://code.google.com/p/selenium/downloads/list> at
com.google.common.base.Preconditions.checkState(Preconditions.java:177) at
org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:105)
at
org.openqa.selenium.ie.InternetExplorerDriverService.access$1(InternetExplorerDriverService.java:1)
at
org.openqa.selenium.ie.InternetExplorerDriverService$Builder.build(InternetExplorerDriverService.java:230)
at
org.openqa.selenium.ie.InternetExplorerDriver.setupService(InternetExplorerDriver.java:262)
at
org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:181)
at
org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:154)
at TestScript01.main(TestScript01.java:19)*
--
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+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/21fe7ba8-d9ed-441d-bb83-9e18a65f144b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...