Course Content
Selenium Python First Script
Selenium Python First Script
0/2
HTML Form elements
HTML Form elements
0/1
Handle HTML Frames
Handle HTML Frames
0/2
Handling Dropdown Lists
Handling Dropdown Lists
0/2
Selenium Action class
Selenium Action class
0/1
Selenium Python for Beginners [ 2024 ]
About Lesson

Install Selenium Python Bindings

In this lesson, we will install Selenium Python bindings. Selenium supports multiple programming languages for web automation. You need to install the Selenium Python library to set up automation scripts.

Install the Selenium Python library.

Install Selenium Python library or bindings to write automation scripts using Python programming language.

Install Python library

To install the Selenium Python library, you can use the following command in your terminal or command prompt:

Open the command prompt and execute the following command:

/> pip install selenium

Install Selenium Python Bindings

This will download and install the Selenium library and its dependencies. Once installed, you can use Selenium to automate web browser interactions in your Python automation scripts.  

PIP (Preferred Installer Program) is the default Python package manager. It allows you to install and manage libraries and dependencies not included in the standard Python library.

 

Selenium Python Bindings
Selenium Python Bindings

Common error

The common error running tests without the Selenium library setup would result in the following module not found error. The trace will be as follows:

from selenium import webdriver ModuleNotFoundError: No module named ‘selenium’

Join the conversation