This is the example project for the WebdriverIO JavaScript tutorial. It shows how to start automating visual tests with the Applitools Eyes and WebdriverIO in JavaScript.
It uses:
- JavaScript as the programming language
- WebdriverIO for browser automation
- Google Chrome as the local browser for testing
- npm for dependency management
- Applitools Eyes for visual testing
It can also run tests with:
- Applitools Ultrafast Grid for cross-browser execution
- Applitools Execution Cloud for self-healing remote WebDriver sessions
To run this example project, you'll need:
- A free Applitools account.
- The Node.js version 12 or higher.
- A good JavaScript editor, such as Visual Studio Code.
- npm (typically bundled with Node.js).
- An up-to-date version of Google Chrome.
- A corresponding version of ChromeDriver.
To install project dependencies, run:
npm install
npm install chromedriver --detect_chromedriver_version
The main test case is acme-bank.test.js
.
By default, the project will run tests with Ultrafast Grid but not Execution Cloud.
You can change these settings in the test file.
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 WebdriverIO JavaScript tutorial!