Installing Selenium & Understanding Browser Drivers
What You Need Before Installing Selenium
Before installing Selenium, you need a working programming environment - such as Python with pip, or Java with Maven - along with a code editor and at least one browser you plan to automate.
Installing Selenium (Python Example)
Selenium can be installed as a language-specific package. In Python, this is done through pip, and in Java, through a Maven or Gradle dependency added to your project's configuration file. Once installed, Selenium's classes and methods become available in your scripts.
- Install via pip: pip install selenium
- Verify installation by importing the selenium module in a script
- Confirm the version using selenium.__version__
Understanding Browser Drivers
A browser driver is a small executable that acts as a bridge between your Selenium script and the actual browser. Selenium sends commands to the driver, and the driver translates them into actions the browser understands, such as clicking or typing.
Common Browser Drivers
| Browser | Driver Name | Maintained By |
|---|---|---|
| Google Chrome | ChromeDriver | Chromium Project |
| Mozilla Firefox | GeckoDriver | Mozilla |
| Microsoft Edge | EdgeDriver | Microsoft |
Keeping Drivers Updated
Browser drivers must match your installed browser version closely, or automation scripts may fail unexpectedly. Newer Selenium versions include Selenium Manager, which automatically downloads and manages the correct driver version for you.
Ready to master Selenium Training Course?
Join Uncodemy's hands-on training and build real automation skills with expert mentors.
← Back to Course