+91 88606 33966            edu_sales@siriam.in                   Job Opening : On-site Functional Trainer/Instructor | Supply Chain Management (SCM)
Installing Selenium and Configuring Web Driver

This article setting up Selenium for web automation by installing the Selenium library using pip. Additionally, you’ll configure the required WebDriver (e.g., ChromeDriver or GeckoDriver) to interact with web browsers, ensuring your environment is ready for seamless browser automation.

Install Selenium via pip

  1. Open a terminal or Command Prompt.
  2. Run the following command to install Selenium

Verify the installation

Download the Appropriate WebDriver

Selenium requires a browser-specific WebDriver for automation. Download the WebDriver that matches your browser version:

  1. ChromeDriver for Chrome:
  2. GeckoDriver for Firefox:
  3. EdgeDriver for Microsoft Edge:
  4. Unzip the WebDriver and place it in a known location (e.g., C:\WebDrivers).

Add WebDriver to System PATH

  1. For Windows:
    • Go to System PropertiesEnvironment Variables → Edit the Path variable.
    • Add the path to the WebDriver executable (e.g., C:\WebDrivers).

With this, your setup is complete.

Installing Selenium and Configuring Web Driver

Leave a Reply

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

Scroll to top