- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 Articles
- How to Download & Install Selenium WebDriver?
- How to install Selenium WebDriver on Mac OS?
- How to get selected option using Selenium WebDriver with Python?
- How to take partial screenshot with Selenium WebDriver in python?
- Running Selenium Webdriver with a proxy 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?
- Selenium WebDriver With Java Quickstart.
- How to Select date from a datepicker with Selenium Webdriver using Python?
- How do you automatically download a Pdf with Selenium Webdriver in Python?
- How to set Selenium Python WebDriver default timeout?
- How to deal with ModalDialog using selenium webdriver?
- How to launch Edge browser with Selenium Webdriver?
- Wait until page is loaded with Selenium WebDriver for Python.
