Installing Selenium Webdriver with Python package

0 votes
Can anyone please explain the installation process of Selenium Webdriver with Python package?
May 8, 2019 in Selenium by Hemant
15,836 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/

Hope this Helps!!

To learn more, join the online course to do Masters in Python.

Thanks!

answered May 8, 2019 by Anvi
• 14,150 points

Related Questions In Selenium

+1 vote
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,910 points
14,422 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,460 points
8,910 views
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

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,500 points
13,673 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,142 views
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,910 points
7,221 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,874 views
0 votes
1 answer
0 votes
1 answer

Can anyone help me with Zomato login test script using Python Selenium Webdriver?

Hi Laxmikant, if you want to write ...READ MORE

answered Jul 29, 2019 in Selenium by Anvi
• 14,150 points
2,132 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP