JSPM

  • Created
  • Published
  • Downloads 98880
  • Score
    100M100P100Q181903F
  • License SEE LICENSE IN LICENSE

Applitools Eyes SDK for Puppeteer

Package Exports

  • @applitools/eyes-puppeteer
  • @applitools/eyes-puppeteer/dist/index.js
  • @applitools/eyes-puppeteer/dist/spec-driver
  • @applitools/eyes-puppeteer/dist/spec-driver.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@applitools/eyes-puppeteer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Applitools Eyes SDK for Puppeteer.

Installation

Install eyes-puppeteer as a local dev dependency in your tested project:

npm i -D @applitools/eyes-puppeteer

Getting started

To get started with this SDK, you need to set the following:

Entering the Applitools API key

To authenticate via the Applitools server and run tests, you need to set the environment variable APPLITOOLS_API_KEY to the API key provided from Applitools Eyes. For details how to retrieve your API key, see the Applitools documentation in the Eyes Knowledge Center.

Entering the API Key on Linux or a Mac

export APPLITOOLS_API_KEY=<your_key>
npm test

Entering the API Key on Windows

set APPLITOOLS_API_KEY=<your_key>
npx test

Entering the API Key programmatically

eyes.setApiKey('<your API key>')

Eyes server URL {#URL}

If the Eyes server is not deployed in https://eyes.applitools.com, you need to set the Server URL in the environment variable APPLITOOLS_SERVER_URL before running tests.

The server URL of your Applitools Eyes dashboard is in the format https://<MY_COMPANY>.applitools.com

Entering the server URL on Linux or a Mac

export APPLITOOLS_SERVER_URL=<YOUR_SERVER_URL>

Entering the server URL on Windows

set APPLITOOLS_SERVER_URL=<YOUR_SERVER_URL>

Further information

For further information, see: