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

前端 未结 25 2289
轻奢々
轻奢々 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 05:55

    (for Mac users) I have the same problem but i solved by this simple way: You have to put your chromedriver.exe in the same folder to your executed script and than in pyhton write this instruction :

    import os

    os.environ["PATH"] += os.pathsep + r'X:/your/folder/script/'

提交回复
热议问题