API …
Dynamic & timing

Network waits

Parallel requests, network idle, delayed redirects and responses you must wait for explicitly.

Practice tasks

  • Click Fire 5 requests and wait for all five responses with Promise.all and waitForResponse.
  • Assert the summary says 5 of 5 completed, then compare total time to the slowest request.
  • Click Delayed redirect and assert the URL change after about 3 seconds with waitForURL.
  • Abort one request with page.route and assert the failed row in the table.
  • Wait for the page to be idle after the burst, then explain why networkidle is discouraged.

More Dynamic & timing practice