logoalt Hacker News

oefrhatoday at 6:04 AM1 replyview on HN

I’m afraid out of all the waiting strategies available in Puppeteer/Playwright, waiting a fixed period is the worst possible. Maybe consider exposing the proper waiting strategies, load/domcontentloaded/networkidle, maybe even the more fine-grained ones https://playwright.dev/docs/actionability


Replies

Retr0idtoday at 6:16 AM

I did some tests and it didn't seem like a fixed wait, when I kept making network requests the render timed out entirely.

show 1 reply