Re:Theheadless.dev – open source Puppeteer and Playwright kn...
by knrz on Wednesday August 19, 2020 @09:02AM
(#24209922)
I’ve found success using page.goto(url, { waitUntil: “networkidle2” }).
The default waitUntil fires when the onload event is triggered, networkidle2 waits for less than 2 network requests in the past 500ms, and networkidle0 waits for no requests in the past 500ms. This + waitForSelector should help you out.
The default waitUntil fires when the onload event is triggered, networkidle2 waits for less than 2 network requests in the past 500ms, and networkidle0 waits for no requests in the past 500ms. This + waitForSelector should help you out.