This repository was archived by the owner on Nov 29, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 195
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
ChromeDriver executable needs to be available in the path. #2034
Copy link
Copy link
Closed
Description
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