dbb374d4af
Page.screenshot operates the global state of the page. In case of multiple Page.screenshot() commands running in parallel with different clipping rects, they interfere with each other. This patch makes Page.screenshot() commands run sequencially even though they were called in parallel. Fixes #15. |
||
---|---|---|
docs | ||
examples | ||
lib | ||
phantom_shim | ||
test | ||
third_party/phantomjs | ||
utils | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
CONTRIBUTING.md | ||
index.js | ||
install.js | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
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