我正在寻找一种方法,允许我在单击按钮或某些操作后等待网络空闲。有没有办法点击后等待网络空闲? page.locator("text=Click").click() //some method that wait network is idle after clicking the button
page.locator("text=Click").click() //some method that wait network is idle after clicking the button
我试过 waitForLoadState 仅在有导航时才有效。waitForResponse 适用于特定请求,但对我来说不好。
playwright playwright-java
playwright ×1
playwright-java ×1