-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Failed to connect Puppeteer to existing Firefox instance run by web-ext #4162
Comments
@denar90 ok I see what's going on. There's some confusion related to remote protocols and what tool uses what when connects.
So what you want is:
puppeteerFirefox.connect({
browserWSEndpoint: 'ws://localhost:1234',
}) One issue I got stuck with is that Let me know how it goes. |
@aslushnikov thank you very much! It works like a charm 💃 |
Hi,
At @treosh we are working on analyzing extensions (ext) impact on real user performance.
We try to install extensions for Firefox (FF) and handle browser with Puppeteer (PP) to do measurements and other stuff, but struggling with some sort of issues.
Tell us about your environment:
Puppeteer version:
"puppeteer-firefox": "^0.5.0"
Platform / OS version: macOS Mojave 10.14.3
Node.js version: v11.1.0
What steps will reproduce the problem?
There are several cases we tried and all of them based on using web-ext library for installing ext for FF.
Case 1: Connect FF instance run by webExt to PP
Code simple:
Error:
Case 2: Connect webExt to FF instance run by PP
Code simple:
Error:
Browser is connected but never install extension
Log from console:
Case 3 (dummy one): Connect FF instance run by webExt to PP FF instance via webExt connect
Error:
Extension doesn't have influence on perf of page run in PP_FF browser because it's installed in FF run by web-ext.
Will be super cool if folks from @GoogleChrome and @mozilla can find some time and help us with solving this problem, hence we will be able to audit impact of Firefox extensions on UX.
Thanks)
The text was updated successfully, but these errors were encountered: