- Install Java and JDK
- Setup JAVA_HOME
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
- Download and install Maven (follow instructions in the maven readme file)
- Download Firefox (or any other supported browser)
- Download its driver (in Firefox's case, GeckoDriver).
- Install Eclipse/IntelliJ IDEA
- Create JAVA Project, Package, etc
- Create a
pom.xml
as instructed by Selenium docs on the project's root - From the command line, run
mvn clean install
on the project's root - Wait a while
- Download Selenium JAR File, add it to the project
- Right click on package
- Build Path > Configure > Libraries > Add external JARs
- This should make all the imports in the following step work
- Copy demo test file from Selenium docs
- Try to run it from Eclipse
- Google your heart out when it doesn't quite work