Add support for puppeteer-firefox
See original GitHub issueHi, 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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top 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 >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
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.
Which version of
puppeeter-firefox
are you using? It seems that your version is outdated. According to this page the functionbrowser.createIncognitoBrowserContext
should exist.CONCURRENCY_PAGE
does not call that function and simply uses pages. You can try if it works with that setting.CONCURRENCY_CONTEXT
andCONCURRENCY_BROWSER
usecreateIncognitoBrowserContext
to provide an isolated environments without having to restart the browser every time.