- Trending Categories
- Data Structure
- Operating System
- MS Excel
- C Programming
- 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 to use Selenium with Python?
We can use Selenium with Python. First, we have to install Python in our system. Navigate to the link: https://www.python.org/downloads/. Click on Download Python <version>.
Based on our operating system, we have the options to download Python on Windows, Linux/Unix, Mac, and so on. After clicking the button, the Python executable file needs to be saved to a location.
Then click on Install Now and proceed with the installation process.
As the installation is done, the Python gets downloaded in the following location −
Next, we have to set the location of the Python folder in the Environmental variables. Also, the path of the Scripts folder inside the Python folder created in our system, needs to be set in the Environmental Variables.
To check if Python is successfully installed, run the command −
Next, we should have the Selenium bindings in our system. We have to get the PIP packages for that. Run the command −
pip install selenium
Once this command runs successfully, we shall have a new folder selenium created inside the Python folder in our system.
To upgrade the current package version, run the command −
pip install −U selenium
To check if Selenium is installed successfully, run the command −
pip show Selenium
- Related Articles
- How to use text() in xpath in Selenium with python?
- How to use a click() method in Selenium with python?
- How to use regular expressions in css in Selenium with python?
- How to use regular expressions in xpath in Selenium with python?
- How to use the gecko executable with Selenium?
- How to use the click() method in Action Chain class in Selenium with python?
- How to upload file with selenium (Python)?
- How do I use Selenium with Ruby?
- How to work with cookies in Selenium with python?
- How to use Selenium IDE?
- How to handle frames in Selenium with python?
- How install Selenium Webdriver with Python?
- Use Selenium with Chromium Browser.
- How to use chrome webdriver in Selenium to download files in Python?
- How to use Selenium in C#?