I'm looking for a method that would allow me to wait for the network idle after clicking a button or some action. there is a way to wait for the network idle after clicking?
page.locator("text=Click").click()
//some method that wait network is idle after clicking the button`
I tried waitForLoadState works only if there is navigation. waitForResponse works on specific requests but it's not good for me.
There is a playwright library for network idle wait.
await page.waitForLoadState('networkidle')
I hope this helps you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With