GitHub - GoogleChromeLabs/puppeteer-examples: Use case-driven examples for using...
source link: https://github.com/GoogleChromeLabs/puppeteer-examples
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
Useful Puppeteer demos!
Examples for using Puppeteer to do big, bold things.
Output from some of the examples:
code_coverage.js
Test lazy loading strategy by seeing CSS/JS code coverage usage across page load.
verify_sw_caching.js
Verify all the resources you expect are being cached by a service worker for offline.
google_search_features.js
Gut check your page to make sure it renders correctly for Google Search.
speech.js
Make your browser talk.
pacman.js
Play the Google Pac-Man Doodle.
element-to-pdf.js
Turn a DOM element into a PDF.
crawlsite.js
Discover all the URLs on a site and visualize the subpages.
License
Apache 2.0 © 2018 Google Inc.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK