Go to file
Andrey Lushnikov 5ea703f2f4 Re-implement phantom's pagecallback.js example with puppeteer
This patch adds examples/pagecallback.js file which illustrates
phantom's pagecallback example re-implemented with puppeteer API.
2017-05-13 11:17:45 -07:00
examples Re-implement phantom's pagecallback.js example with puppeteer 2017-05-13 11:17:45 -07:00
lib Drop unneeded Page Event's prefixes. 2017-05-13 11:12:06 -07:00
phantomjs Rename Page.Events.ConsoleMessageAdded -> Page.Events.ConsoleMessage 2017-05-13 11:05:54 -07:00
test Drop unneeded Page Event's prefixes. 2017-05-13 11:12:06 -07:00
third_party/phantomjs add phantomjs examples under third_party/phantomjs/examples 2017-05-12 10:33:14 -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 Puppeteer: staging commit. 2017-05-11 00:06:41 -07:00
install.js Puppeteer: staging commit. 2017-05-11 00:06:41 -07:00
LICENSE Initial commit 2017-05-09 15:16:13 -07:00
package.json Add minimal test framework 2017-05-12 16:38:07 -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