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.

Add support for puppeteer-firefox

See original GitHub issue

Hi, Really love your project, have successfully used clustered chrome instances but my requirement is also to include Firefox. As puppeteer is developing ‘puppeteer-firefox’, although it is experimental and soon to be released. I looked into this issue #41 and tried to use it for firefox, it doesn’t work. Throws this error:

(node:3160) UnhandledPromiseRejectionWarning: Error: Unable to get browser page
    at Worker.<anonymous> (C:\Users\hp\Desktop\Project\node_modules\puppeteer-cluster\src\Worker.ts:75:27)
    at Generator.next (<anonymous>)96 (running for 1.2 minutes)
    at fulfilled (C:\Users\hp\Desktop\Project\node_modules\puppeteer-cluster\dist\Worker.js:4:58)
    at <anonymous>own (@ 0 pages/second)

Can you please help to solve this issue?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shubh453commented, Mar 8, 2019

Which version of puppeeter-firefox are you using?

I was running puppeteer-firefox 0.4.2, which was in fact not the latest version. I updated it and fixed the error. I am going to close this issue. Thanks for your time.

0reactions
thomasdondorfcommented, Mar 7, 2019

Which version of puppeeter-firefox are you using? It seems that your version is outdated. According to this page the function browser.createIncognitoBrowserContext should exist.

what is the necessity of using incoginto window/page?

CONCURRENCY_PAGE does not call that function and simply uses pages. You can try if it works with that setting. CONCURRENCY_CONTEXT and CONCURRENCY_BROWSER use createIncognitoBrowserContext to provide an isolated environments without having to restart the browser every time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Run Puppeteer with Firefox Instead of Chrome
Although Puppeteer is developed to run on Chrome, Puppeteer supports Firefox from Puppeteer v2.1.0 onwards. It is an ongoing collaboration between Puppeteer ......
Read more >
how do you install and run puppeteer for firefox - Stack Overflow
Run "PUPPETEER_PRODUCT=firefox npm install" or "PUPPETEER_PRODUCT=firefox yarn install" to download a supported Firefox browser binary.
Read more >
How to run Tests in Puppeteer with Firefox - BrowserStack
Puppeteer extended its support to Firefox. Read tutorial on how you can run tests in Puppeteer with the Firefox browser with help of ......
Read more >
puppeteer-firefox - npm
Start using puppeteer-firefox in your project by running `npm i ... Firefox support is gradually transitioning to the puppeteer package.
Read more >
FAQ | Puppeteer
From Puppeteer v2.1.0 onwards you can specify puppeteer.launch({product: 'firefox'}) to run your Puppeteer scripts in Firefox Nightly, without any additional ...
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