- Download Selenium Standalone server here
- Note that this is a
jar
file. So you should also have Java 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.
- Run the standalone server jar file - it should look something like below:
java -jar selenium-server-standalone-3.141.59.jar
(Replace the jar file name with your jar file name)
- This will run Selenium on localhost and on port 4444
- Install Node.js from here
- Download the example
- Option 1:
git clone https://github.com/applitools/tutorial-nightwatch-ultrafastgrid.git
- Option 2: Download it as a Zip file and extract it
- CD into the
tutorial-nightwatch-ultrafastgrid
folder
- Change the
APPLITOOLS_API_KEY
with your own.
- Login to Applitools > Click on the Person icon > My API Key
- run
npm install
- run
npm test
Adding to an existing Node.js example
npm install "@applitools/eyes-nightwatch" --save-dev