Puppeteer waitUntil: how to wait for page load
Join me in exploring how to find the ideal wait time or event of when to take the page screenshot with Puppeteer.
- Written by
- Dmytro Krasun
- Updated on
- •
- 8 min read
How-to posts and troubleshooting guides for Puppeteer-based automation.
Join me in exploring how to find the ideal wait time or event of when to take the page screenshot with Puppeteer.
In this note, I share how I take website screenshots or render HTML and upload the resulted images or PDF to any S3-compatible storage like Amazon S3, Cloudflare R2, or Backblaze B2.
Use Puppeteer or screenshot API to generate the Open Graph protocol images, bills, receipts, or invoices PDF or PNG files from the HTML templates.
How to add custom scripts to a page in Puppeteer. Let's discover how it works quickly."
To add custom styles to any page use Puppeteer's page method `page.addStyleTag(options)`. Let's discover how it works quickly.
Puppeteer allows blocking any outgoing requests while loading the page. Whether you want to block ads, tracking scripts, or different types of resources, it is relatively easy to do with Puppeteer.
It is easy to use proxy globally for the puppeteer instance, but there is a trick to use proxy on a per-page basis.
Sharing working Puppeteer examples based on the experience of building one the best screenshot APIs.
Exhaustive documentation, ready SDKs, no-code tools, and other automation to help you render website screenshots and outsource all the boring work related to that to us.