Installing Selenium Webdriver with Python package

0 votes
Can anyone please explain the installation process of Selenium Webdriver with Python package?
May 8 in Selenium by Hemant
174 views

1 answer to this question.

0 votes

Hey Hemant, for installing Selenium Webdriver with Python Package, follow these steps one by one:

  1. Installing Python: On Linux Distributions, MAC OS X, and Unix machines; Python is by default installed. However, on Windows machines, it needs to be installed separately. Python installers for different OS can be downloaded from this link: https://www.python.org/downloads/

  2. Installing Selenium Webdriver Python Package: Use PIP Package Manager To Install Selenium With Python. For that, first go to the directory where you’ve installed Python. For eg. I have the latest Python version 3.6, and its location is <C:\python36>

  3. Use the <pip> tool to install the Selenium Webdriver package with following line of code:

    >>pip install selenium



    To upgrade the currently installed Selenium Webdriver package then, just add the -U flag to the previous <pip> command, i.e. 

    C:\python36>pip install -U selenium

           The <pip> tool will download the latest version of the Selenium package and install it on your machine. The optional –U flag will upgrade the existing version of the installed package to the latest version.

          

    4. After we have set up Python and Selenium WebDriver, the next important step is to either pick an editor or an IDE (Integrated Development Environment) for writing the test scripts. Some of the popular python IDEs are PyCharm, PyDev Eclipse Plugin, PyScripter etc. You can download PyCharm from here: http://www.jetbrains.com/pycharm/

answered May 8 by Anvi
• 13,400 points

Related Questions In Selenium

0 votes
1 answer

How to handle notifications in Python with Selenium (Chrome WebDriver)

Below will help you: You can disable the ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
2,484 views
0 votes
1 answer

Get coordinates or dimensions of element with Python using Selenium WebDriver

WebElements have the properties such as .size and .location. ...READ MORE

answered Jul 11, 2018 in Selenium by Meci Matt
• 9,420 points
1,976 views
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
771 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
1,016 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
719 views
0 votes
1 answer
0 votes
1 answer