question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: page.waitForNetwork

See original GitHub issue

In some cases clicking something may trigger a number of network requests, for example it triggers an AJAX load which then adds images to the DOM.

It would be useful to be able to reapply the waitUntil concept of page.goto or page.waitForNavigation, allowing us to wait until everything has finished loading before going any further.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:18
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
IngyuTaecommented, Jul 16, 2021
const waitForNetwork0 = async (page, timeout = 500) => {
  await new Promise((resolve) => {
    let timer;
    page.on('response', () => {
      clearTimeout(timer);
      timer = setTimeout(resolve, timeout);
    });
  });
};
5reactions
TimotheeJeannincommented, Feb 19, 2019

Any news on this feature? It would be super useful! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Requests - Home Assistant Community
Topic Replies Views Activity DoorBird feature request ‑ restart 1 146 June 8, 2022 Create folder for automations · automation 3 703 January 4, 2022 PumpSpy...
Read more >
Consistently waiting for network responses in Playwright
One of the neat features I like about Playwright is how easily it is to wait for network responses that are triggered by...
Read more >
Is there a way to get puppeteer's waitUntil "networkidle" to only ...
You can use pending-xhr-puppeteer, a lib that expose a promise awaiting that all the pending xhr requests are resolved. Use it like this...
Read more >
Puppeteer | Puppeteer
Automate form submission, UI testing, keyboard input, etc. Create an automated testing environment using the latest JavaScript and browser features. Capture a ...
Read more >
Site24x7 Community: Feature Requests
Visualize a response ( values ) of API request and map to a chart ( dashboard ). posted by Site 24x7 Demo in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found