Skip to content

testable/puppeteer-remote-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Example scripts to use Testable as a remote browser grid with Puppeteer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published