This is the example project for the Selenium JavaScript Mocha tutorial. It shows how to start automating visual tests with the Applitools Eyes and the Ultrafast Grid using Selenium WebDriver in JavaScript.
It uses:
- JavaScript as the programming language
- Selenium WebDriver for browser automation
- Google Chrome as the local browser for testing
- npm for dependency management
- Mocha as the core test framework
- Applitools Eyes for visual testing
To run this example project, you'll need:
- A free Applitools account.
- Node.js version 12 or higher.
- A good JavaScript editor, such as Visual Studio Code.
- An up-to-date version of Google Chrome.
- A corresponding version of ChromeDriver.
To install project dependencies, run:
npm install
The main test case is acme-bank.test.js
.
To execute tests, set the APPLITOOLS_API_KEY
environment variable
to your account's API key,
and then run:
npm test
For full instructions on running this project, take our Selenium JavaScript Mocha tutorial!