close

how to install geckodriver on a windows system

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about how to install geckodriver on a windows system in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

how to install geckodriver on a windows system?

  1. how to install geckodriver on a windows system?

    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.

  2. install geckodriver on a windows system

    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.

Method 1

For one make sure you are downloading the one for your OS. Windows is at the bottom of the list it will say win32. Download that file or 64 doesn’t matter.

After that you are going to want to extract the file. If you get an error that says there is no file in the Winrar file, this may be because in your Winrar settings you have Winrar set to not extract any files that have the extension .exe. If you go to Winrar options then settings then security you can delete this it will say *.exe, and after you delete that you can extract the file. After that is done, search how to update the path so that gecko driver can be accessed. Then you will most likely need to restart.

Method 2

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()

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read