python - Error message: "'chromedriver' executable needs to be available in the path" -


i using selenium python , have downloaded chromedriver windows computer site: http://chromedriver.storage.googleapis.com/index.html?path=2.15/

after downloading zip file, unpacked zip file downloads folder. put path executable binary (c:\users\michael\downloads\chromedriver_win32) environment variable "path".

however, when run following code:

  selenium import webdriver    driver = webdriver.chrome() 

... keep getting following error message:

webdriverexception: message: 'chromedriver' executable needs available in path. please @     http://docs.seleniumhq.org/download/#thirdpartydrivers , read @ http://code.google.com/p/selenium/wiki/chromedriver 

but - explained above - executable is(!) in path ... going on here?

you can test if in path, if open cmd , type in chromedriver (assuming chromedriver executable still named this) , hit enter. if starting chromedriver 2.15.322448 appearing, path set appropriately , there else going wrong.

alternatively can use direct path chromedriver this:

 driver = webdriver.chrome('/path/to/chromedriver')  

so in specific case:

 driver = webdriver.chrome("c:/users/michael/downloads/chromedriver_win32/chromedriver.exe") 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -