Error message: “'chromedriver' executable needs to be available in the path”

前端 未结 25 2321
轻奢々
轻奢々 2020-11-22 05:15

I am using selenium with python and have downloaded the chromedriver for my windows computer from this site: http://chromedriver.storage.googleapis.com/index.html?path=2.15/

25条回答
  •  不要未来只要你来
    2020-11-22 06:08

    We have to add path string, begin with the letter r before the string, for raw string. I tested this way, and it works.

    driver = webdriver.Chrome(r"C:/Users/michael/Downloads/chromedriver_win32/chromedriver.exe")
    

提交回复
热议问题