In this tutorial, we would study the configuration and installation of Selenium WebDriver on to our local system in 10 quick steps.

Before initiating with the installation, I would like to take a moment to list the required softwares/installations to be in place before starting the WebDriver installation.

Pre-requisites

– JDK (If we are planning to create our testscripts in Java) or any other kit that would enable you to write your testscripts in the desired programming language.
-Eclipse IDE (Optional)

Installation Process

Downloading Selenium WebDriver API

Step 1: Download the “WebDriver” package from Selenium’s official website – “http://docs.seleniumhq.org/download/”. Select any of the following packages specific to the programming language. For this tutorial, we download package for Java. Refer the following illustration.

1

Take a note that Selenium WebDriver supports multiple languages i.e. the user is allowed to choose his/her desired programming language to create test scripts provided the chosen language falls under the umbrella of Selenium supported programming languages.

Step 2: A zipped folder named as “selenium-java-2.42.2.zip” would be downloaded. Copy the zipped folder and paste it to the desired location on the local file system.

Step 3: The next step is to extract the zipped folder. Explore the contents and files of the extracted folder. You shall be able to see many of the jar files.
Now that the selenium is downloaded, the next step would be configuring Selenium with Eclipse.

Project Creation with Eclipse IDE

Step 4: Launch Eclipse IDE by double clicking eclipse.exe present inside the software distribution.
2

Step 5: Create a new “Java Project” inside eclipse IDE. To create Java project inside eclipse, navigate to File -> New -> Project.
3

Step 6: Expand the option “Java” and Select “Java Project” and click on the “Next ” button.
4

Step 7: The next step is to provide the name of your java project. Provide a user defined name as shown below and click on the “Finish” button.
5

User would be able to see the created project within the “Project Explorer” view in the left container of the Eclipse IDE. The project would be shown something similar to the below illustration.

6

Now that we are also done with the project creation, let us make a move towards configuring selenium libraries within the project so as to enable Selenium capabilities into the project.

Configuring Selenium WebDriver with Eclipse IDE
Step 8: The next step is to add all the Selenium libraries within the created project. To do so, right click on the project and select “Build Path” option and navigate to “Configure Build Path…” option. This would open a pop up window to add the libraries.

7

Step 9: Click on the “Libraries” tab and then click on “Add External JARs…”. Select all the jar files within the Selenium package and click on the “Open” button.
8

Step 10: All the jar files would be selected and configured within the project. The last step is to click on the “OK” button.
9

The entire installation and configuration is completed now. The user can now create, edit and execute Selenium test scripts.

I hope this tutorial would turn out to be beneficial with respect to Selenium installation and would serve all the readers a quick guidebook.

Related Articles:
switching-multiple-webdriver-instances

Share this:

Leave a Reply

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