

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How install Selenium Webdriver with Python?
We can install Selenium webdriver with Python with the following steps.
In Linux or MacOS, Python is installed by default. However, in Windows, we have to download Python from the link https://www.python.org/downloads/.
Click on Download Python <version> button. Once the download is completed, the Python executable file gets saved in our system. Click on this file, and the Python installation landing page gets opened. Then, click on Install Now.
Once the installation is completed, Python gets downloaded in the path −
C:\Users\<User>\AppData\Local\Programs\Python\Python<version>
We have to configure the path of the Python folder along with the Scripts folder (generated within the Python folder) in the Environment variables.
To verify, Python has been installed, run the command: python --version.
To install the Selenium bindings in our system, run the command: pip install selenium. As this is done, a folder called Selenium should get created within the Python folder. To update the existing version of Selenium, run the command: pip install –U selenium.
We should have an editor to write the Selenium scripts in Python.
PyCharm(Community version) can be used. We can download it from the link − https://www.jetbrains.com/pycharm/.
- Related Questions & Answers
- How to Download & Install Selenium WebDriver?
- How to install Selenium WebDriver on Mac OS?
- Running Selenium Webdriver with a proxy in Python.
- Selenium WebDriver With Java Quickstart.
- How to get selected option using Selenium WebDriver with Python?
- How to take partial screenshot with Selenium WebDriver in python?
- How to take screenshot with Selenium WebDriver?
- How to send cookies with selenium webdriver?
- Is navigate method available in Selenium Webdriver with Python?
- How to deal with ModalDialog using selenium webdriver?
- How to launch Edge browser with Selenium Webdriver?
- How to set Selenium Python WebDriver default timeout?
- Maximize WebDriver (Selenium 2) in Python.
- Selenium RC vs Selenium webdriver.
- Selenium WebDriver StaleElementReferenceException.