Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.12 KB

File metadata and controls

19 lines (13 loc) · 1.12 KB

Puppeteer + Testable Examples

This repository contains several examples to help you run Puppeteer and utilize Testable as a remote browser grid.

Steps to Run

  1. Set your API key: export TESTABLE_KEY=xxx. API keys can be generated by logging into Testable and going to Org Management => API Keys.
  2. Switch to either the browser or openfin directory and run npm install to install any dependencies
  3. Choose the example you want to run. For example: node basic.js to run the basic example.

The version of Puppeteer must match with the version of Chrome.

Examples

  • browser/basic.js: A basic example that loads a page and takes a screenshot
  • browser/all-options.js: Includes all possible parameters that you can pass Testable when initializing the session.
  • browser/testable-commands.js: Includes an example for each custom command that Testable accepts around setting pass/fail, logging, metrics, and assertions.
  • openfin/openfin.js: An example that tests an OpenFin application. Note that the version of Puppeteer used matches the Chromium version that the OpenFin runtime wraps.