how to install geckodriver on a windows system

后端 未结 5 1068
孤街浪徒
孤街浪徒 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条回答
  •  -上瘾入骨i
    2021-02-09 06:36

    You can put it anywhere. 1. put it into your project folder. 2. create a folder and put driver into it. Set the driver path up in your code.

      from selenium import webdriver
      path="C:\\Programs\\Python36\\BrowersDriver\\chromedriver.exe"
      driver=webdriver.Chrome(path)
      driver.get("http://www.yahoo.com")
      driver.close()
      driver.quit()
    

    http://kennethhutw.blogspot.sg/2017/03/how-to-install-geckodriver-on-windows.html

提交回复
热议问题