Windows 7 - How to include include the ChromeDriver location in PATH environment variable?

9,362 views
Skip to first unread message

Michelle Knight

unread,
Oct 24, 2013, 2:11:56 PM10/24/13
to seleniu...@googlegroups.com
Hi,

I downloaded ChromeDriver as a tool for running automated tests, via a UI tool like Selenium IDE,  in Chrome. I am currently using WIndows 7 as my OS. 

 When I run the .exe from  C:\Users\mknight\AppData\Local\Google\Chrome, using the elevated command prompt, the service starts but does not complete.Based on my reading https://sites.google.com/a/chromium.org/chromedriver/getting-started and https://splinter.readthedocs.org/en/0.1/setup-chrome.html, I think the chrome driver executable needs to be set to the path.  Would anyone know how set the path on Windows 7 so that Chrome Driver will work and allow me to do the automated tests through the UI? 

Arran

unread,
Oct 25, 2013, 10:45:15 AM10/25/13
to seleniu...@googlegroups.com
"Does not complete" means what exactly? So you are using WebDriver playback from the IDE? What commands are you using to start the server up?

Michelle Knight

unread,
Oct 28, 2013, 1:12:49 PM10/28/13
to seleniu...@googlegroups.com
Hi Arran

Does not complete means, in the elevated command prompt,  I see the text "Starting ChromeDriver (v2.4.226107) on port 9515" but nothing following . From the elevated command prompt I change directory to C:\Users\mknight\AppData\Local\Google\Chrome. Then I enter "chromedriver.exe" into the command line.

I tried setting the PATH to the Chrome Driver using a suggested article  http://www.computerhope.com/issues/ch000549.htm , from Ken . I run into the same issue.

I am thinking ChromeDrive may be looking for the Selenium WebDriver to execute? I am looking at https://code.google.com/p/selenium/wiki/ChromeDriver .. Am I on the right track?

Michelle

Jim Evans

unread,
Oct 29, 2013, 12:58:36 PM10/29/13
to seleniu...@googlegroups.com
Chromedriver.exe has nothing to do with recording and playing back scripts like Selenium IDE records. Chromedriver.exe is an executable application used by WebDriver code (written in a language like Java, C#, Ruby, or Python) which, in turn, translates that code into actions performed by the Chrome browser. When you launch chromedriver.exe, it's going to just sit there, waiting for some WebDriver code to tell it what to tell Chrome to do.

Bruce MacKenzie

unread,
Oct 29, 2013, 2:05:47 PM10/29/13
to seleniu...@googlegroups.com
Actually, if using selenium IDE to "play back" with web driver checked and chrome as the browser selected then it has a lot to do with playing back the test.
Reply all
Reply to author
Forward
0 new messages