Set Up - Java and WebDriver with Eclipse

1. Download and Install Java Development Kit (JDK) on Windows

2. Download and Start Eclipse IDE

3. Download Selenium WebDriver Java client (library files)

4. Configure Eclipse with Selenium WebDriver

5. Download Chrome driver –

6. How to install Maven on Windows and Set the path of the GeckoDriver in Environment Variables

a. Go to My Computer and Right click to get the context menu.
b. Click on the Change Settings on the opened window.
c. Go to Advance tab in the System Properties window and click on Environment Variables.
d. Now under the System variables, select Path and click on Edit.
e. At the end of the string use semicolon and paste the path of the GeckoDriver.

Apache Maven
Make sure JDK is installed, and “JAVA_HOME” variable is added under System variables "Environment Variable". And paste the path of JDK.
2. Download Apache Maven
Unzip to downloaded folder – C:\Program Files\Apache\maven

Add both M2_HOME and MAVEN_HOME variables in the Windows environment and paste the path of Maven folder.

4. Add To PATH
Update PATH variable, append Maven bin folder – %M2_HOME%\bin, so that you can run the Maven’s command everywhere.

5. Verification

Done, to verify it, run mvn –version in the command prompt.