ChromeDriver executable needs to be available in the path.
lukeis opened this issue · 9 comments
lukeis commented
Originally reported on Google Code with ID 2034
What steps will reproduce the problem?
#!/usr/bin/python
from selenium import webdriver
from selenium.webdriver.chrome.webdriver import WebDriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import time
browser = webdriver.Chrome()
browser.get("http://www.yahoo.com") # Load page
assert "Yahoo!" in browser.title
browser.close()
What is the expected output? What do you see instead?
Chrome to open with yahoo.com.
Selenium version: Selenium-server-standalone-2.0.0.jar
OS:Ubuntu 11.04
Browser:Chrome
Brower version:12.0.742
Please provide any additional information below.
Traceback (most recent call last):
File "chrome-basic.py", line 9, in <module>
browser = webdriver.Chrome()
File "/usr/local/lib/python2.7/site-packages/selenium-2.0.0-py2.7.egg/selenium/webdriver/chrome/webdriver.py",
line 39, in __init__
self.service.start()
File "/usr/local/lib/python2.7/site-packages/selenium-2.0.0-py2.7.egg/selenium/webdriver/chrome/service.py",
line 51, in start
and read up at http://code.google.com/p/selenium/wiki/ChromeDriver")
selenium.common.exceptions.WebDriverException: ChromeDriver executable needs to be
available in the path. Please download from http://code.google.com/p/selenium/downloads/list
and read up at http://code.google.com/p/selenium/wiki/ChromeDriver
I have chromedriver executable under Path-to-seleniumegg/selenium/webdriver/chrome/
..... right where the webdriver.py for chrome exist. Is this the right place for chromedriver
to be?
I have some confusion in setting the right PATH... i am using python and I think that
i am not needing the selenium-server-standalone-2.0.0.jar for executing my tests??
Am i right? So what should be my PATH. The path where i have my python scripts OR
the server-standalone path or the selenium egg path??
I have the standalone server unzipped under my home like /home/abc/selenium/selenium-server-standalone-2.0.0.jar
and i have one copy of chromedriver here as well and this path is added to the PATH
using export PATH=$PATH:/home/abc/selenium. Is this the right place for chrome to be?
Reported by Agrawal.Esha
on 2011-07-12 06:14:02
lukeis commented
I am using chromedriver_linux64_13.0.775.0.zip
Note: I am a new user to selenium 2 actually to selenium itself. I started reading
and testing with selenium last week.
Reported by Agrawal.Esha
on 2011-07-12 06:21:40
lukeis commented
You need to unzip the download and put the executable in the path. Then use the driver
as normal
Reported by david.burns@theautomatedtester.co.uk
on 2011-07-12 09:31:04
- Status changed:
WorkingAsIntended
lukeis commented
spoke little too early. It is working. place chromedriver under /usr/bin.
Reported by Agrawal.Esha
on 2011-07-12 16:52:49
lukeis commented
Set a+x permissions after unzip
Reported by ivan.pirog
on 2012-08-06 22:48:03
lukeis commented
For windows, please have the chromedriver placed under <Install Dir>/Python27/Scripts
Reported by aru1683
on 2013-01-08 08:33:27
lukeis commented
the advice in #6 works, thank you!
Reported by blueacker
on 2014-04-24 06:41:47
lukeis commented
#6 worked for me also. I just needed to place the chromedriver.exe file in the Scripts
folder; im using Anaconda, but its the same Script file that is in Python27.
Reported by jacarte1
on 2014-09-16 16:25:45
lukeis commented
Hi, I'm using Windows 7 and I've placed the chromedriver in C:\Python34\Scripts. I've
also added the driver location to my path - C:\Driver_location as well as C:\Driver_location\chromedriver.exe
and I'm still getting error message "selenium.common.exceptions.WebDriverException:
Message: Can not connect to the 'chromedriver'"
Reported by aofadero
on 2015-05-13 16:13:31
lukeis commented
Reported by luke.semerau
on 2015-09-17 18:13:15
- Labels added: Restrict-AddIssueComment-Commit