-
Java is installed on your machine.
-
Maven is installed on your machine, JAVA_HOME environment variable is created, path to Maven is added to environment variable PATH
-
Chrome browser is installed on your machine.
-
Chrome Webdriver is on your machine and is in the PATH. Here are some resources from the internet that'll help you.
-
Git is installed on your machine.
-
IDE (IntelliJ IDEA for example) is installed on your machine.
-
6.1 Set Project SDK to your JDK (installed in Step 1) in Intellij - File > Project Structure > Project.
-
-
Restart your machine to implement updated environment variables (need for some OS).
-
Git clone this repo
git clone https://github.com/applitools/tutorial-selenium-java-ultrafastgrid.git, or download this as a Zip file and unzip it
-
Get an API key by logging into Applitools > Person Icon > My API Key
-
Navigate to just cloned folder tutorial-selenium-java-basic.
-
Import the project as a Maven project in IntelliJ IDEA.
-
Navigate to AppTest class - src\test\java\com\applitools\quickstarts\AppTest in IntelliJ IDEA.
-
In IntelliJ IDEA or in any editor update file src\test\java\com\applitools\quickstarts\AppTest.java and set your ApiKey in string 'config.setApiKey("...")' (or comment the string and set APPLITOOLS_API_KEY environment variable)
-
Run class AppTest from IntelliJ IDEA - tap Run, choose 'AppTest'.
Read more here: https://www.applitools.com/tutorials/selenium-java.html