Issue
I am getting this error:
Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.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:110) at org.openqa.selenium.chrome.ChromeDriverService.access$0(ChromeDriverService.java:1) at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:118) at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:291) at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:82) at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:117) at selenium.basics.Chrome.chromeBrowser(Chrome.java:16) at selenium.basics.Firefox.main(Firefox.java:8)
Solution
Download the latest chrome version from
http://chromedriver.storage.googleapis.com/index.html
Path should be adjusted through build path.
Try it once, it is helping to you...
Answered By - nalini
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.