Go to file
Andrey Lushnikov 2b50d8cc32 Introduce utils/check_availability.js utility
This patch introduces check_availability.js utility which looks for
available chromium binaries for different revisions and platforms.

This patch also re-factors the chromium downloader scripts so that
it can operate different platforms.
2017-06-08 11:22:21 -07:00
bin Fix tests and puppeteer shim after c08f1447 2017-05-15 00:17:34 -07:00
examples Introduce utils/check_availability.js utility 2017-06-08 11:22:21 -07:00
lib Introduce utils/check_availability.js utility 2017-06-08 11:22:21 -07:00
phantomjs Implement printing to PDF 2017-05-14 22:00:39 -07:00
test Puppeteer's Page.navigate should not throw with invalid URL. 2017-05-14 22:17:57 -07:00
third_party/phantomjs Fix tests and puppeteer shim after c08f1447 2017-05-15 00:17:34 -07:00
utils Introduce utils/check_availability.js utility 2017-06-08 11:22:21 -07:00
.gitignore Puppeteer: staging commit. 2017-05-11 00:06:41 -07:00
CONTRIBUTING.md Puppeteer: staging commit. 2017-05-11 00:06:41 -07:00
index.js Slight code restructuring 2017-05-14 23:28:00 -07:00
install.js Introduce utils/check_availability.js utility 2017-06-08 11:22:21 -07:00
LICENSE Initial commit 2017-05-09 15:16:13 -07:00
package.json Slight code restructuring 2017-05-14 23:28:00 -07:00
README.md Add minimal test framework 2017-05-12 16:38:07 -07:00

Status

Test results on Mac OS X in headless mode:

  111 passed
   20 failed as expected
    1 skipped
   49 unsupported

Installing

npm i
npm link # this adds puppeteer to $PATH

Run

# run phantomjs script
puppeteer third_party/phantomjs/examples/colorwheel.js

# run 'headful'
puppeteer --no-headless third_party/phantomjs/examples/colorwheel.js

# run puppeteer example
node examples/screenshot.js

Tests

Run all tests:

npm test

Run phantom.js tests using puppeteer:

npm run test-phantom

Run puppeteer tests:

npm run test-puppeteer