How To Download And Install Selenium WebDriver (2021)

How To Download And Install Selenium WebDriver (2021)

Before going through how to install Selenium WebDriver. Let’s look into in the pre-requisites we need to install Selenium WebDriver.

We need to have the following
i. Mozilla Firefox
ii. Active Internet Connection

Must read: Selenium Tutorial

Download Selenium and Install Selenium WebDriver

Follow the below steps to complete the installation.

Step 1: Download and Install JAVA
Step 2: Download and Install Eclipse
Step 3: Download and Install FireBug [Not required]Step 4: Download and Install FirePath [Not required]Step 5: Download Selenium WebDriver

Here is the latest video on “Install Selenium WebDriver – 2018”

Java version – 10.0.1
Eclipse – Photon
Selenium WebDriver – 3.13.0

Please be patient. The video will load in some time.

Step 1: Download and Install JAVA

Check below video to see “How To Install Java”

Go to the below mentioned link and download latest version of JAVA or click here

1
http://www.oracle.com/technetwork/java/javase/downloads/index.html

Accept the license agreement and choose the right ‘JDK’ file to download based on your system requirement.

Once downloaded. Go ahead and verify the Java version. To do this, open command prompt and type “java -version” and hit enter

Step 2: Download and Install Eclipse

Go to the following link to download eclipse

1
http://www.eclipse.org/downloads/

Download the appropriate file based on your system requirement

Download ‘Eclipse IDE for Java Developers’

Extract the eclipse file which you have downloaded

Right-click on ‘eclipse.exe’ and run it as ‘Run as administrator’

Choose a specified path to create ‘workspace’ by using the ‘Browse’ button.

You could create Java Projects, Packages, and Classes in Java Eclipse.

Step 3. Download and Install FireBug [ Jump to Step 5 ]

Go to the link mentioned below to install Fire Bug

1
https://addons.mozilla.org/en-US/firefox/addon/firebug/

Click on Add to Firefox button

Click on Install button

Now you could see Fire Bug by navigating through

Tools – Web Developer – Firebug – Open Firebug (or) use shortcut key ‘F12’

Step 4: Download and Install FirePath [ Jump to Step 5 ]

Go to the link mentioned below to install Fire Path

1
https://addons.mozilla.org/en-US/firefox/addon/firepath/

Click on Add to Firefox button

Click on Install button

Click on Restart Now

Now you could see Fire Path by navigating through

Tools – Web Developer – Firebug – Open Firebug (or) use shortcut key ‘F12’

You could find the ‘XPath’ by using ‘FirePath’ as shown below

Step 5: Download and Install Selenium WebDriver [Configuring WebDriver]

Go to the following link to download the latest Selenium Java jars (latest Selenium WebDriver jars).

1
http://www.seleniumhq.org/download/

Extract the Selenium file named “selenium-java-2.48.2.zip”. It contains all the required jar files which enable you to create test scripts in Java. You can configure these libraries in Eclipse IDE.

Configure Libraries in Eclipse IDE:

Open Eclipse and Create Java Project by navigating through File – New – Java Project

Add project name and click on Next followed by Finish. Here I am giving a name “NewJavaProject”.

The newly created project can be viewed on the left side of the screen in the Package Explorer panel.

Create a Package:

Right click on the project you have created and select New – Package

Enter name of the package and click on Finish

Right-click on the project you have created and select New – Class

Enter the name of the class and click on Finish. Here I am giving a name “NewJavaClass”

Now right-click on the newly created project and select ‘Properties’ – ‘Java Build Path’

Select Libraries Tab and click on ‘Add External Jars’

Select all the jars files as shown in the below images and click on Open

Click on the “Apply” and then “OK” button within the dialogue box. Finally, we have completed the configuration part of Selenium Libraries in our Java project.

Next steps:

Learn “ How To Write First Selenium WebDriver Script ” in the next tutorial.

You may like the following posts.

  • How Much Java is Required for Selenium
  • Selenium Tutorial
  • TestNG Tutorial
  • Java Tutorial
  • Selenium Interview Questions
  • TestNG Interview Questions
  • Java Interview Questions