mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Node.js API for Chrome
91e54378a3
This patch implements: - puppeteer's Page.printToPDF method. The method's defaults are similar to phantom's defaults for the paperSize property. - phantom's render into pdf file. |
||
---|---|---|
examples | ||
lib | ||
phantomjs | ||
test | ||
third_party/phantomjs | ||
.gitignore | ||
CONTRIBUTING.md | ||
index.js | ||
install.js | ||
LICENSE | ||
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