Skip to content

applitools/example-puppeteer-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Applitools Example: Puppeteer in JavaScript

This is the example project for the Puppeteer JavaScript tutorial. It shows how to start automating visual tests with Applitools Eyes and Puppeteer in JavaScript.

It uses:

It can also run tests with:

To run this example project, you'll need:

  1. An Applitools account, which you can register for free
  2. A recent version of Node.js
  3. A good JavaScript editor like Visual Studio Code

To install dependencies, run:

npm install

When this command installs Puppeteer, it will also automatically install Chromium.

The main test case spec is acme-bank.test.js. By default, the project will run tests with Ultrafast Grid. 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 Puppeteer JavaScript tutorial!