How to set Chrome Driver path in eclipse and system variable

8,777 views
Skip to first unread message

abhijit

unread,
Mar 15, 2012, 7:37:52 AM3/15/12
to Selenium Users, harsh....@gmail.com, kawade...@gmail.com
Want to set the path for chrome driver in eclipse and system variable
in order to start the browser at run time.

I have set up the chrome driver path in eclipse - > Run Configuration
- > arguments as following.

variable name : webdriver.chrome.driver
value : path up to application i.e. C:\Users\abhijitz\AppData\Local
\Google\Chrome\Application\

in eclipse and system , however getting follwoing error after running
the test.
"java.lang.IllegalStateException: The path to the chromedriver
executable must be set by the webdriver.chrome.driver system property;
for more information......................"

selenium_freak

unread,
Mar 15, 2012, 9:02:27 AM3/15/12
to seleniu...@googlegroups.com, harsh....@gmail.com, kawade...@gmail.com
you have to set up the chrome driver also
Refer http://code.google.com/p/selenium/wiki/ChromeDriver

Edwolb

unread,
Jun 27, 2012, 11:39:50 AM6/27/12
to seleniu...@googlegroups.com, harsh....@gmail.com, kawade...@gmail.com
We've done it by implementing a properties file with the file location, and a @Before method that loads the property file and uses it to launch the browser.  This allows for the flexibility of different workstations and nodes having different paths without having them run different code to launch the browser.

--
Chris

Tyler Ebel

unread,
Jun 27, 2012, 12:39:46 PM6/27/12
to seleniu...@googlegroups.com, harsh....@gmail.com, kawade...@gmail.com
Is there any trickery doing this in linux, I have the system property set as explained but get the same error, along with: 


org.openqa.selenium.WebDriverException: Build info: version: '2.23.1', revision: '17143', time: '2012-06-08 18:59:04'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.0.0-16-generic', java.version: '1.7.0_147-icedtea'
Driver info: driver.version: RemoteWebDriver
Session ID:


Thanks,


Tyler Ebel.
Reply all
Reply to author
Forward
0 new messages