How To Download And Install Selenium WebDriver (2020)

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

Install Java - Click JDK Download

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

Install Java - Accept License Aggrement

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

Install Java - Verify Java Version

Step 2: Download and Install Eclipse

Go to the following link to download eclipse

Download the appropriate file based on your system requirement

Install Eclipse - Download Eclipse

Download ‘Eclipse IDE for Java Developers’

Install Eclipse - Download Eclipse IDE For Java Developers

Extract the eclipse file which you have downloaded

Install Eclipse - Extract Eclipse File

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

Install Eclipse - Run As Admin

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

Install Eclipse - Choose Workspace

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

Install Eclipse - Eclipse API

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

Go to the link mentioned below to install Fire Bug

Click on Add to Firefox button

Install Fire Bug - Click on Add to Firefox

Click on Install button

Install Fire Bug - Click on Install

Now you could see Fire Bug by navigating through

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

Install Fire Bug - Go To Menu Tools WebDeveloper FireBug

Install Fire Bug - Shortcut F 12

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

Go to the link mentioned below to install Fire Path

Click on Add to Firefox button

Install Fire Path - Click Download Now

Click on Install button

Install Fire Path - Click Install

Click on Restart Now

Install Fire Path - Click Restart Now

Now you could see Fire Path by navigating through

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

Install Fire Path - Shortcut F 12

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

Install Fire Path - Go To Menu Tools WebDeveloper FireBug Open FireBug
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).

Install Selenium WebDriver - Download Java Version

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.

Install Selenium WebDriver - Extract File

Configure Libraries in Eclipse IDE:

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

Install Selenium WebDriver - Create Java Project

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

Install Selenium WebDriver - Create Java Project

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

Install Selenium WebDriver - Create Package

Enter name of the package and click on Finish

Install Selenium WebDriver - Create Package

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

Install Selenium WebDriver - Create Class

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

Install Selenium WebDriver - Create Class

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

Install Selenium WebDriver - Configure Build Path

Select Libraries Tab and click on ‘Add External Jars’

Install Selenium WebDriver - Add External Jars

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

Install Selenium WebDriver - Add External Jars

install-selenium-webdriver-12

Install Selenium WebDriver - Add External Jars

Install Selenium WebDriver - Add External Jars

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.

Get our latest blog posts delivered to your inbox

Subscribe and get popular blog posts about software testing industry.

Rajkumar

Leave a Comment

Share via
Copy link
Powered by Social Snap