close

How do I install Geckodriver?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How do I install Geckodriver 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 do I install Geckodriver?

  1. How do I install Geckodriver?

    The easiest way if you are on windows:
    driver = webdriver.Firefox(executable_path=r'[Your path]\geckodriver.exe')

  2. install Geckodriver

    The easiest way if you are on windows:
    driver = webdriver.Firefox(executable_path=r'[Your path]\geckodriver.exe')

Method 1

  1. You can download the geckodriver
  2. unzip it
  3. Copy that .exe file and put your into python parent folder (e.g., C:\Python34)
  4. write your scripts.

It will execute successfully.

Method 2

The easiest way if you are on windows:

driver = webdriver.Firefox(executable_path=r'[Your path]\geckodriver.exe')

Example:

driver = webdriver.Firefox(executable_path=r'D:\geckodriver.exe')

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