Check out the steps here: https://applitools.com/tutorials
This repo has the code for the demo app used in the Selenium JavaScript tutorial