how to install geckodriver on a windows system

后端 未结 5 1058
孤街浪徒
孤街浪徒 2021-02-09 06:07

I am trying to intall webdriver and in order to open firefox i need the geckodriver to be installed and in the correct path.

Firstly the download link to install geckodr

5条回答
  •  有刺的猬
    2021-02-09 06:59

    I've wrestled with the same question for last hour, and finally have a solution, which will hopefully help someone out there (Windows 10, Python 2.7, Anaconda distribution).

    1) This was the issue in my case: make sure you have the latest version of Firefox installed. I had firefox 36, which, when checking for updates, said it was the latest version. Mozilla's website had version 54 as latest. So download firefox from website, and reinstall

    2) Make sure you have the latest gecko driver downloaded

    3) If you're getting the path error - use the code below to figure out which path python is looking at, and pop the geckodriver.exe in there:

    import os
    os.getcwd()
    

提交回复
热议问题