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.

puppeteer-firefox - waitUntil - networkIdle0

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: “puppeteer-firefox”: “^0.5.0”
  • Platform / OS version: Mac
  • URLs (if applicable):
  • Node.js version: 8

What steps will reproduce the problem?

await Promise.all([
  page.goto(`${process.env.URL_TO_TEST}`),
  page.waitForNavigation({
    waitUntil: 'networkidle0'
  })
]);

What is the expected result?

Workflow continues and waits for navigation.

What happens instead?

Unknown waitUntil condition: networkidle0
(node:7615) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7615) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:7615) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'emit' of undefined
    at Browser._onTargetDestroyed (/node_modules/puppeteer-firefox/lib/Browser.js:195:28)
    at emitOne (events.js:116:13)
    at Connection.emit (events.js:211:7)
    at Connection._onMessage (node_modules/puppeteer-firefox/lib/Connection.js:124:12)
    at <anonymous>
(node:7615) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
aslushnikovcommented, Jul 15, 2019

networkidle is not yet supported in pptr-firefox. But stay tuned!

1reaction
rodoabadcommented, Jul 15, 2019

@aslushnikov can you add the firefox label?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Puppeteer waitUntil Options - Using them effectively.
Puppeteer has an option called waitUntil where you can pass in several options. These options change the behavior of how and when it...
Read more >
How to Run Puppeteer with Firefox Instead of Chrome
Create a new puppeteer-firefox folder and go to the directory. ... Open URL in current page await page.goto(website_url, { waitUntil: 'networkidle0' }); ...
Read more >
Puppeteer | Puppeteer
Puppeteer is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol. Puppeteer runs in headless mode by...
Read more >
Puppeteer - CodeceptJS
Uses Google Chrome's Puppeteer (opens new window) library to run tests inside headless Chrome. Browser control is executed via DevTools Protocol ...
Read more >
Opening local HTML file using Puppeteer - Stack Overflow
Other way javascript await page.goto(`data:text/html,${pageHtml}`, { waitUntil: 'networkidle0' });. – Boban Stojanovski.
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