How to install Selenium WebDriver

Last updated on Nov 29 2021
Manikaran Reddy

Table of Contents

How to install Selenium WebDriver

Selenium WebDriver installation process is completed in four basic steps:
1. Download and Install Java 8 or higher version.
2. Download and configure Eclipse or any Java IDE of your choice.
3. Download Selenium WebDriver Java Client
4. Configure Selenium WebDriver

1. Download and Install Java

We assume that you simply have already installed Java 8 or above on your machine and successfully configured the environment variables required to run and compile java programs.
Note: you will need to possess Java 8 installed to use Selenium 3.
However, you’ll download the newest version of Java Development Kit (JDK) from the link given below.
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Once you’ve got downloaded and installed the newest version of Java, you would like to line path or configure the environment variables in your system. Refer the link given below to know how we will set path and configure environment variables in Java.
https://www.tecklearn.com/how-to-set-path-in-java

2. Download and Configure Eclipse IDE

• Open URL: https://www.eclipse.org/downloads
• Click on the “Download Packages” link (you also can download the IDE directly from the “downloads page” of Eclipse official website, but we’ll recommend you to navigate through the download packages section and obtain “Eclipse IDE for Java Developers”).

Selenium Web Driver
Selenium Web Driver

• It will redirect you to the “Download Packages” section. Scroll down through the webpage and click on on “Eclipse IDE for Java Developers”.

Selenium Web Driver
Selenium Web Driver

• Go to the Download Links section and click on on “Windows 64-bit”. you’ll also select other options to download supported the OS you’re currently performing on .

Selenium Web Driver
Selenium Web Driver

• The downloaded file would be in zipped format. Unpack the contents during a convenient directory.

Selenium Web Driver
Selenium Web Driver

• Double click on “eclipse” (.exe file).

Selenium Web Driver
Selenium Web Driver

• To configure the workspace, select a convenient directory where you would like to stay all of your Selenium trails and click on on Launch button.

Selenium Web Driver
Selenium Web Driver

• It will launch the default interface of Eclipse IDE.

Selenium Web Driver
Selenium Web Driver

3. Download Selenium WebDriver Java Client

• Open URL: https://docs.seleniumhq.org/download/
It will redirect you to the “downloads page” of Selenium official website.
• Scroll down through the online page and locate Selenium Client & WebDriver Language Bindings.
• Click on the “Download” link of Java Client Driver as shown within the image given below.

Selenium Web Driver
Selenium Web Driver

• The downloaded file would be in zipped format. Unpack the contents during a convenient directory. It contains the essential jar files required to configure Selenium WebDriver in Eclipse IDE.

Selenium Web Driver
Selenium Web Driver

4. Configure Selenium WebDriver

Now we’ll configure our Eclipse IDE with Selenium WebDriver. In simple terms, we’ll create a replacement Java Project in Eclipse and cargo all the essential jar files so as to make Selenium Test Scripts.
• Launch Eclipse IDE
• Create a replacement Java Project from File > New > Java Project.

Selenium Web Driver
Selenium Web Driver

• Give your Project name as “Demo_Test”, leave the opposite fields unaltered and click on on “Finish” button.
• It will create a replacement Java project with the subsequent directories.

Selenium Web Driver
Selenium Web Driver

Note: Selenium Test Scripts are always written in “.class” enter Java. Here the project “Demo_Test” act as a Test Suite which will contain one or more Selenium test cases/test scripts.
• Right click on the “src” folder and make a replacement Class File from New > Class.

Selenium Web Driver
Selenium Web Driver

• Give your Class name as “First” and click on on “Finish” button.

Selenium Web Driver
Selenium Web Driver

Now, we’ll add the Selenium jar files in our Test Suite (Demo_Test).
• Right click on “Demo_Test” folder and choose Properties.

Selenium Web Driver
Selenium Web Driver

• It will launch the Properties window for our “Demo_Test” Test Suite.
• Click on “Java Build Path” option from the left side panel.

Selenium Web Driver
Selenium Web Driver

• Switch to Libraries tab and click on on “Add External JARs” button.

Selenium Web Driver
Selenium Web Driver

• Locate the directory where you’ve got downloaded the Selenium jar files, select the respective jars and click on on “Open” button.

Selenium Web Driver
Selenium Web Driver

• Repeat an equivalent steps for the jars which are present under the “libs” folder.
• Open “libs” folder, select all of the respective jar files and click on on “Open” button.

Selenium Web Driver
Selenium Web Driver

• Once you get all the Selenium jar files in your Libraries tab, click on Apply and shut button.
• The following image shows the directory structure of our “Demo_Test” test suite after adding Selenium jars.

Selenium Web Driver
Selenium Web Driver

Hence, we’ve successfully configured Selenium WebDriver with Eclipse IDE. Now, we are able to write our test scripts in Eclipse and run it in WebDriver.

So, this brings us to the end of blog. This Tecklearn ‘How to install Selenium WebDriver’ blog helps you with commonly asked questions if you are looking out for a job in Selenium and Automation Testing. If you wish to learn Selenium and build a career in Automation Testing domain, then check out our interactive, Selenium Certification Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:
https://www.tecklearn.com/course/selenium-training-certification/

Selenium Certification Training

About the Course

Tecklearn’s Selenium Certification Training enables you to master the complete Selenium suite. The Selenium Training is designed to train developers and manual testers to learn how to automate web applications with a robust framework, and integrate it within the DevOps processes of an organization. This Selenium Certification Training will also help you master important concepts such as TestNG, Selenium IDE, Selenium Grid, Selenium WebDriver, etc. Get hands-on experience on widely used automation frameworks such as Data-Driven Framework, Keyword-Driven Framework, Hybrid Framework, and Behavior Driven Development (BDD) Framework. Throughout this online Instructor-led Selenium Certification Training, you will be working on real-life industry use cases.

Why Should you take Selenium Certification Training?

• The average salary of a Selenium Test Automation Engineer is $94k per year – Indeed.com.
• Automation Testing Market is expected to grow at a Compound Annual Growth Rate (CAGR) of 18.0% in the next three years.
• Global software testing market to reach $50 billion by 2020 – NASSCOM. Selenium tool supports more browsers and languages than any other testing tool.

What you will Learn in this Course?

Getting started with Selenium
• Introduction to Selenium testing
• Significance of automation testing
• Comparison of Manual and Automation Testing
• Installation of Java JDK, JRE and Eclipse
Setting the environment in Eclipse for Selenium
• Java Introduction
• Creating a Java function and executing
• Concepts of Java
• Properties File
• Reading Data from Excel File
• Database Connection
• Hands On
Advantages of Selenium automation testing
• Selenium Features
• Concept of Selenium Integrated Development Environment
• Understanding of the Selenium IDE features
• Addition of Script assertions and general commands
• Deploying the first Selenium Script
• Sample project IDE
• Recording Selenium test case
• Hands On
Selenium Web driver Automation
• Architecture of Selenium Web Driver
• Download and installation
• Creating a Java function using Selenium and execution
• Hands On
Deploying Web Drivers for scripting
• Getting the HTML source of Web Element
• Table and Form Elements
• Firebug extension and Fire Path installation
• Advance User Interactions and Cross Browser Testing
• Hands On
Deep dive into Selenium Web Driver
• Action Commands
• Web Table / Date Picker
• How to Implement Switching Commands in WebDriver
• Alerts
• Frames
• Hands On
Switching Operations in WebDriver using Window
• Selenium Webdriver Wait
• Implicit wait, Explicit wait
• Deploying searching elements using the link text, name, using XPath
• Calendar
• Hands On
Introduction to TestNG Framework
• Introduction to TestNG
• Advantages of TestNG
• Installing TestNG on Eclipse
• Rules to write TestNG
• TestNG Features
• Annotations
• Grouping
• Sequencing: Prioritization and Dependency
• Enable/Disable a test case
• Parameterization: Using Xml file and DataProvider
• Parallel Testing & Cross Browser Testing
• TestNG Report: HTML Report, Console Report, XML Report
JUnit Operations and Test Framework
• Annotations, Methods in JUnit
• Junit Test Suites, ANT Build and JUNIT reporting
• Types of Test Automation Framework
• Module Based Testing Framework
• Data Driven Testing Framework
• Keyword Driven Testing Framework
• Hybrid Driven Testing Framework
• How to implement Testing Framework in Project
Object Repository
• Understanding of Object Repository
• Learning sample scripts using object repository
• Page Object Modelling
• Page Factory
JavaScript Functions
• Autosuggestion
• Headless Browser
• Sikuli
• XPath

Got a question for us? Please mention it in the comments section and we will get back to you.

0 responses on "How to install Selenium WebDriver"

Leave a Message

Your email address will not be published. Required fields are marked *