puppeteer-firefox - waitUntil - networkIdle0
See original GitHub issueSteps 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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
networkidle
is not yet supported in pptr-firefox. But stay tuned!@aslushnikov can you add the firefox label?