checkly/puppeteer-examples ? reverse-engineered prompt

Reverse engineered prompt

Build me a small JavaScript repo with a bunch of practical Puppeteer examples that I can run one at a time with Node.

I want simple scripts that show the common things people do with Headless Chrome, like opening pages, getting text and titles, clicking, typing, hovering, handling alerts, taking screenshots, making PDFs, blocking images, faking location, setting cookies, and downloading or uploading files. Please also include a few real world examples for searching sites, logging into common services with environment variables, shopping cart flows, and running a few pages in parallel.

It would be great if the examples are grouped into clear folders, each script is easy to read, and there’s a README that explains what each one does and how to run it. If useful, add a couple of test examples too, one with Mocha and one with Jest. Use current Puppeteer docs online if you need to, and make the examples practical rather than fancy.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab