How to Install Selenium Webdriver

This blog will provide detailed steps on how to install Selenium Webdriver.

What is Selenium Web Driver?

Selenium WebDriver is the most important component of Selenium Tool’s Suite. The latest release “Selenium 2.0” is integrated with WebDriver API which provides a simpler and more concise programming interface.

What is the process for installation?

Selenium web driver installation process comprises of 4 major 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.

Selenium Web Driver Installation

Let us start the installation process and we will cover each step in detail.

Download and install java

We assume that you have already installed Java 8 or above on your machine and successfully configured the environment variables required to run and compile java programs.

If not you can download it from

https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

And based upon your OS whether Windows or Mac download the version.

Selenium Webdriver

Download and install Eclipse

You can download Eclipse from https://www.eclipse.org/downloads/packages/release/kepler/sr1/eclipse-ide-java-developers

Selenium Webdriver Install

Click on the download button.

Selenium Webdriver Installation

It will automatically show you the version according to your machine and OS used. Here it is showing for Windows 10 machine 64bit.

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

Selenium Webdriver Installation

The downloaded file would be in a zipped format. Extract the contents in a convenient directory.

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

To configure the workspace, select a convenient directory where you want to keep all of your Selenium trails and click on the Launch button.

Selenium Webdriver

It will launch the default interface of Eclipse IDE

Selenium Webdriver Installation

Download Selenium Web driver

 Go to https://www.selenium.dev/downloads/

Download selenium standalone server stable version

Selenium Webdriver

Save in your local machine.

Configure Selenium Web driver

In the above step, Selenium is installed now we have to configure it.

Create a new project in Eclipse and configure web driver jar files. Right-click on the project and then click on the build path and configure the build path.

Selenium Webdriver Installation

Add “selenium-server-standalone-3.141.59.jar” to your library.

Installation

Webdriver Installation

Now click on edit

Selenium  Instllation

And then enter this http://seleniumhq.github.io/selenium/docs/api/java/ in the java doc location.

Selenium

IDE

Now Selenium web driver is ready to be used.

 

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.