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.
– 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)
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.
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
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.
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.
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.