Set Up - Java and WebDriver with Eclipse

https://www.mkyong.com/maven/how-to-install-maven-in-windows/


1. Download and Install Java Development Kit (JDK) on Windows
    http://toolsqa.com/selenium-webdriver/download-and-install-java/

2. Download and Start Eclipse IDE
    http://toolsqa.com/selenium-webdriver/download-and-start-eclipse/

3. Download Selenium WebDriver Java client (library files)
    http://toolsqa.com/selenium-webdriver/download-selenium-webdriver-java-client/

4. Configure Eclipse with Selenium WebDriver
    http://toolsqa.com/selenium-webdriver/configure-eclipse-with-selenium-webdriver/

5. Download Chrome driver –
    http://toolsqa.com/selenium-webdriver/running-tests-in-chrome-browser/

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

GeckoDriver
***********
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
************
1. JDK and JAVA_HOME
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

3. Add M2_HOME and MAVEN_HOME
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.