Not able to open the Crome using selenium | Selenium Forum
M
Posted on 21/08/2015
Is this code correct ? If yes then why it is giving the following error ?

System.setProperty("webdriver.crome.driver", "C:\\Users\\Ruchi Junnarkar\\chromedriver.exe");
ChromeDriver c1 = new ChromeDriver();
c1.get("http://seleniumhq.com");
System.out.println(c1.getTitle());

-------------------------------------------------------------

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:105)
at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:89)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:117)
at MySecondJavaProgram.main(MySecondJavaProgram.java:25)

M
Replied on 21/08/2015

[quote="ruchijunnarkar@yahoo.co.in"]Is this code correct ? If yes then why it is giving the following error ?

System.setProperty("webdriver.[color=#FF0000:1dylfczs][size=150:1dylfczs]crome[/size:1dylfczs][/color:1dylfczs].driver", "C:\\Users\\Ruchi Junnarkar\\chromedriver.exe");

-------------------------------------------------------------

Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.[color=#00FF00:1dylfczs][size=150:1dylfczs]chrome[/size:1dylfczs][/color:1dylfczs].driver system pro

Hi,
Replace crome, with Chrome Responsive image