Login    Forum    Members    FAQ

Board index » Student Support Center - Doubts and Discussions‏ » Selenium - Doubts and Discussions‏




 Page 1 of 1 [ 4 posts ] 



Author Message
 Post Posted: Thu Dec 24, 2015 6:19 pm 
 

Joined: Mon Dec 07, 2015 9:02 pm
Posts: 7
hello ,
i am working on module 11.i have loaded drivers for chrome and ie but while executing ie it is giving me an error saying

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:197)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:109)
at org.openqa.selenium.ie.InternetExplorerDriverService.access$0(InternetExplorerDriverService.java:1)
at org.openqa.selenium.ie.InternetExplorerDriverService$Builder.findDefaultExecutable(InternetExplorerDriverService.java:167)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296)
at org.openqa.selenium.ie.InternetExplorerDriver.setupService(InternetExplorerDriver.java:251)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:172)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:146)
at Drivers.main(Drivers.java:18)

while running on chrome it gives an error saying


Starting ChromeDriver 2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067) on port 8530
Only local connections are allowed.


Request you to please help me in resolving this.

Thanks
Swapna


Top 
 Post Posted: Thu Dec 24, 2015 11:03 pm 
 

Joined: Tue Sep 22, 2015 4:53 pm
Posts: 27
You have to provide full server file path with name of executable file -
System.setProperty("webdriver.ie.driver", "C:\\Users\\Anupam\\Downloads\\Software\\IEDriverServer.exe");

while running on chrome it's a message, you just ignore it -

Starting ChromeDriver 2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067) on port 8530
Only local connections are allowed.


Top 
 Post Posted: Sat Jan 02, 2016 12:07 am 
 

Joined: Tue Oct 20, 2015 11:34 pm
Posts: 22
what is the equivalent code for c#? pls give an example


Top 
 Post Posted: Sat Jan 02, 2016 11:24 am 
Site Admin

Joined: Thu Jan 01, 1970 5:30 am
Posts: 5133
System.Environment.SetEnvironmentVariable("webdriver.chrome.driver",@"/path/to/where/you/ve/put/chromedriver.exe")

https://msdn.microsoft.com/en-us/library/z46c489x.aspx


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 4 posts ] 




Board index » Student Support Center - Doubts and Discussions‏ » Selenium - Doubts and Discussions‏


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron