Hey! Puppeteer python is a lifesaver, but yeah, it can be tricky. For waiting, I use `page.waitForResponse` if I’m waiting for an API call to finish. Works like a charm.
Headless mode is great, but I switch to non-headless when debugging and use `page.screenshot` to capture what’s going wrong.
Error handling? I use `retry` decorators for my functions. If something fails, it retries a few times before giving up.
Also, check out Playwright if you’re open to alternatives. It’s like puppeteer python but with more features.
Headless mode is great, but I switch to non-headless when debugging and use `page.screenshot` to capture what’s going wrong.
Error handling? I use `retry` decorators for my functions. If something fails, it retries a few times before giving up.
Also, check out Playwright if you’re open to alternatives. It’s like puppeteer python but with more features.
