![]() ![]() In this article, we will see how to install selenium webdriver in python3 using easy steps. Webdriver is an API and protocol that act as an interface for controlling the behavior of web browsers. Each browser is backed by a specific WebDriver implementation, called a driver. The driver is the component responsible for delegating down to the browser, and handles communication to and from Selenium and the browser. Selenium WebDriver refers to both the language bindings and the implementations of the individual browser controlling code. This is commonly referred to as just WebDriver. WebDriver is designed as a simple and more concise programming interface. ![]() WebDriver is a compact object-oriented API.python -m pip install selenium On Linux Installing Python on Linux is easy. The -m flag stands for module name and allows you to pass a module at the time of invoking Python. How to Install Selenium WebDriver in Python 3 Īlso Read: How to Plot Multiple Graphs in Python Using Matplotlib Step 1: PrerequisitesĪ) You should have a running Windows or Linux System.ī) You should have an active Internet Connection.Ĭ) You should have access to install a package in your System. Type in the following command to install Selenium: pip install selenium If the above command throws an error, you can execute the pip command using the -m flag. If you don't have python3 already installed in your System then you can install it on a Ubuntu/Debian based system using sudo apt install python3 command as shown below. If you are using RHEL/CentOS based systems then you can either use sudo yum install python3 or sudo dnf install python3 command. If you are using Windows based systems, then go to official website and download and install the latest software from there. ![]() In our case, since python3 is already installed so it won't do anything as you can see below. Python3 is already the newest version (3.8.2-0ubuntu2).
0 Comments
Leave a Reply. |