3 ms·
I’ve found success using page.goto(url, { waitUntil: “networkidle2” }). The default waitUntil fires when the onload event is triggered, networkidle2 waits for
by knrz 6y ago
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.