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.