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
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.
Â
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’