14 views
Skip to first unread message

karuna nidhi

unread,
Jul 20, 2017, 9:15:12 AM7/20/17
to seleniu...@googlegroups.com
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

VijayKumarNachapalli

unread,
Jul 23, 2017, 10:47:25 PM7/23/17
to seleniu...@googlegroups.com
Hello,

Firstly, you need to decide whether you want to use Firefox or IE for
running your tests.

If you want to use IE, then the first statement should be as below.

System.setProperty("webdriver.ie.driver","D:\\EW\\JARS_Additional\\IEDriverServer_Win32_2.39.0\\IEDriverServer.exe");

And if you want to use Firefox, then the first statement should be as below.

System.setProperty("webdriver.gecko.driver","D:\\EW\\JARS_Additional\\IEDriverServer_Win32_2.39.0\\IEDriverServer.exe");

Regards,
Vijay



--
View this message in context: http://selenium.10932.n7.nabble.com/no-subject-tp57253p57273.html
Sent from the Selenium - Users mailing list archive at Nabble.com.
Reply all
Reply to author
Forward
0 new messages