You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there is a way to wait until all network activity has become idle (without navigation, refreshing, or going to a new page) as the application I am writing tests for requires all API requests to complete first before some buttons become clickable etc.
I am currently doing stuff like await page.waitFor(10000) and so on but I don't think this is the best solution.
Is there any way I can write code that would act something like this:
await page.waitFor({ waitUntil: networkidle })
Any insight would be appreciated, thanks so much in advance!
The text was updated successfully, but these errors were encountered:
Hi @rogervanwile, thank you for your response. I was actually wondering if there was an option to do { waitUntil: 'networkidle2 }without having to go to a new page, and to perform this operation on the current page.
@saadahmad03 thanks for the clarification. This has been requested for a while already; filed a designated bug report for it: #3083. Feel free to upvote.
I was wondering if there is a way to wait until all network activity has become idle (without navigation, refreshing, or going to a new page) as the application I am writing tests for requires all API requests to complete first before some buttons become clickable etc.
I am currently doing stuff like
await page.waitFor(10000)
and so on but I don't think this is the best solution.Is there any way I can write code that would act something like this:
await page.waitFor({ waitUntil: networkidle })
Any insight would be appreciated, thanks so much in advance!
The text was updated successfully, but these errors were encountered: