02-Environment Setup

In order to work with Selenium WebDriver in Java, we will need to do a little setup. We’ll need the following installed; the Java Development Kit (JDK), an IDE and some support tools. Below I’ve gone through the entire setup process to help facilitate the process.

1. Installation of the Java Development Kit (JDK). You can install the latest version of the Java Development Kit from here:

2. Add the JDK location to the “Environment Variable for your system.














Click on the “New…” button under the user variables.

Enter “JAVA_HOME” in theĀ  Variable name text box.

Enter the location of the JDK in the Variable value text box and click “OK”.

Under the “System variables” section, select the “Path” row and click on “Edit…”.

Append the location of the JDK to the end of the existing values.

In this particular instance, you would append “;C:\Program Files (x86)\Java\jdk1.8.0_101\bin” to the end.

Note the added “;” to delimit our new value from the previous value.

3. Verify that your JDK installation was a success.

Open the command prompt and enter the following command “java -version”. You should see the version of Java that you just installed.

4. Done. This part of the environment portion is complete.

Next Page: 03-IDE Installation