DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability("chrome.binary", "C:\Users\Dell\AppData\Local\Google\Chrome\Application\chrome.exe");
WebDriver driver = new ChromeDriver(capabilities);
> webdriver.chrome.driver system property; for more information, seehttp://code.google.com/p/selenium/wiki/ChromeDriver . The latest
Tried every possible soln but still getting below error
Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: :\Workspace\TestApplication\ :\Workspace\chromedriver.exeat com.google.common.base.Preconditions.checkState(Preconditions.java:176)at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:117)at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:112)at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:69)at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:107)at Testing.main(Testing.java:11)
On Saturday, January 7, 2012 2:41:29 PM UTC+5:30, MRM wrote:
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/56MCCHuhfQwJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
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-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ea7419a2-c792-497e-ae58-704d1a5b38fc%40googlegroups.com.
[TestNG] Running: C:\Users\Rafael\AppData\Local\Temp\testng-eclipse-1215559628\testng-customsuite.xml
FAILED CONFIGURATION: @BeforeMethod setUpjava.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://code.google.com/p/chromedriver/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.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:75)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:107)
at postComments.PostCommentLinkVideo.setUp(PostCommentLinkVideo.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213) at org.testng.internal.Invoker.invokeMethod(Invoker.java:653) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) at org.testng.TestNG.run(TestNG.java:1057) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
SKIPPED CONFIGURATION: @AfterMethod tearDownSKIPPED: PostCommentsAsGuest
[TestNG] Running: C:\Users\Rafael\AppData\Local\Temp\testng-eclipse--286829347\testng-customsuite.xml
FAILED CONFIGURATION: @BeforeMethod setUpjava.lang.NullPointerException at storeDesktop.PurchaseInStore1.setUp(PurchaseInStore1.java:26)
SKIPPED: PurchaseFuneralHome
=============================================== Default test Tests run: 1, Failures: 0, Skips: 1 Configuration Failures: 1, Skips: 1===============================================
===============================================Default suiteTotal tests run: 1, Failures: 0, Skips: 1Configuration Failures: 1, Skips: 1===============================================
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@3de5da76: 13 ms[TestNG] Time taken by org.testng.reporters.EmailableReporter2@2646b10b: 7 ms[TestNG] Time taken by org.testng.reporters.jq.Main@63deebc8: 40 ms[TestNG] Time taken by org.testng.reporters.XMLReporter@2c2c14f9: 11 ms[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 7 ms[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@107267a4: 27 ms
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability("chrome.binary", "C:\Users\Dell\AppData\Local\Google\Chrome\Application\chrome.exe");
WebDriver driver = new ChromeDriver(capabilities);
Thanks,
Med Amine