python 2.7 - Selenium - chromeDriver u'unknown error : chrome field to start -
i'm pretty new in selenium , getting error chromewebdriver.
i'm using: chrome 36, chromewebdriver 2.10, windows 7
here's code:
from selenium import webdriver webd = webdriver.chrome();
but response
unknown error : chrome field start
how can fix this?
you may need download chrome executable driver http://chromedriver.storage.googleapis.com/index.html , set executable path accordingly. sample python code :
import os selenium import webdriver selenium.webdriver.common.keys import keys chromedriver = "./chromedriver" os.environ["webdriver.chrome.driver"] = chromedriver driver = webdriver.chrome(chromedriver) #driver = webdriver.firefox() driver.get("http://www.python.org") print driver.title assert "python" in driver.title
for more information , end end script follow reference
Comments
Post a Comment