![]() Note the r in front of the "C:\Chrome\chromedriver.exe", this makes this string a raw string. In addition to the selected answer (windows style path): driver = webdriver.Chrome(executable_path=r"C:\Chrome\chromedriver.exe") Paste the chromedriver.exe file in "C:\Python27\Scripts" Folder. Goto /usr/bin directory and you would need to run something like " chmod a+x chromedriver" to mark it executable. Move the file to /usr/bin directory sudo mv chromedriver /usr/binĦ. ![]() Get the appropriate version of chrome driver from ĥ. If not, install latest version of chrome "sudo apt-get install chromium-browser"ģ. Check you have installed latest version of chrome browser-> "chromium-browser -version"Ģ. driver = webdriver.Chrome(executable_path=r"C:\Chrome\chromedriver.exe")ġ. ![]() You should specify the executable file path, not the directory path that contains the executable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |