Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppeteer-firefox - waitUntil - networkIdle0 #4613

Closed
rodoabad opened this issue Jun 22, 2019 · 6 comments
Closed

puppeteer-firefox - waitUntil - networkIdle0 #4613

rodoabad opened this issue Jun 22, 2019 · 6 comments

Comments

@rodoabad
Copy link

rodoabad commented Jun 22, 2019

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)
@twitwi
Copy link

twitwi commented Jul 3, 2019

I observe the same error (Error: Unknown waitUntil condition: networkidle0) with the same puppeteer-firefox version 0.5.0, under linux mint 19, when trying to run decktape.js with puppeteer-firefox.

@buhion
Copy link

buhion commented Jul 10, 2019

Similar error for puppeteer-firefox@0.5.0 (Error: Unknown waitUntil condition: networkidle2) in MacOS

@aslushnikov
Copy link
Contributor

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

@rodoabad
Copy link
Author

@aslushnikov can you add the firefox label?

@mjzffr
Copy link
Contributor

mjzffr commented Jan 13, 2020

Thanks for the report. I'm closing this issue since the experimental puppeteer-firefox package is no longer maintained. A replacement will be available
later this year. You can learn more about Mozilla's work on this at https://wiki.mozilla.org/Remote

See also #5137

@mjzffr mjzffr closed this as completed Jan 13, 2020
@ali-habibzadeh
Copy link

This is still an issue. It just times out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants