Installing chromedriver on windows PATH


Index

  1. How selenium works
  1. Installing selenium webdriver on windows PATH
    2.1 Download
    2.2 Setting up the environment variables
  1. Conclusion


1. How selenium works

Selenium webdriver is a free open source programming package for automating interactions with a live browser.

It needs a proxy server to connect with live browsers, in other words, you can code the selenium instructions in many languages (Java, Python, C#), these instructions will instantiate a WebDriver (ChromeDriver, GeckoDriver) that will interact with the browser (Google Chrome, Firefox).


2. Installing selenium webdriver on windows PATH


2.1 Download

In this tutorial we will use the chromedriver (for Chrome), it will be installed in the windows system path, and not inside the project folder as usual in many other projects.
Download the latest stable release of chromedriver from the link below:
https://chromedriver.chromium.org/home

It’s important that the chromedriver has the same chrome version installed on your machine.

Extract the executable you downloaded into the folder “C:\webdrivers\”.


2.2 Setting up the environment variables

Open the environment variables software.

In “system variables” select “Path” and click edit.

Click “New” and add the folder path where the chromedriver was extracted.

Click OK.


3. Conclusion

Open a new “Command Prompt” and type the command.

chromedriver --version

The system will show the chromedriver version you installed.

PS: If this doesn’t work, do the logout and login on your windows system and run the command above again.

The end.

Leave a Comment

Your email address will not be published. Required fields are marked *