-
Notifications
You must be signed in to change notification settings - Fork 5
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
Interact with an extension on Firefox #86
Comments
Hi, I manage to launch the Nightly-browser (Firefox) with my local extension file thanks to your package. Thanks, its great! Now I am trying to read the UUID of the extension in order to laund the I normally read the UUID from this page: Do you know a workaround to interect with Best wishes, |
So, I managed to get the UUID from another way. Here the code for it:
Trying to interact with the |
We run into same problems with Playwright timeout on extension page load.
|
You can force a static UUID to be used when testing an extension:
const context = await browserTypeWithExtension.launch({
firefoxUserPrefs: {
"extensions.webextensions.uuids": JSON.stringify({
"[email protected]": "2975768f-5c9f-4941-86e9-c53dfb667d84"
})
}
}) |
@chrmod problem is that this lib works if you try to navigate to e.g. i'm looking in update 1
it seems that playwright firefox patch might be causing some issues causing https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Stmt_after_return update 2 but i guess the core issue is this line |
@olso-nordsec thanks for great analysis! @dgozman can you please explain what's the reason behind https://github.com/microsoft/playwright/blob/1277ec99008898cba23c3511d024972e42409963/browser_patches/firefox/juggler/content/JugglerFrameChild.jsm#L41 ? Should this issue be moved to under the main playwright repo? |
@chrmod Playwright does not support Firefox extensions, thus the line you linked to. |
@dgozman I do understand that the team does no support the Firefox extension. I'm asking, as perhaps with some changes like removal of guards mentioned we could get some functionality running. Would you be open for partial support if driven by community? |
Any updates on this? We are also looking into testing the UI of Firefox extensions. Can https://github.com/microsoft/playwright/blob/1277ec99008898cba23c3511d024972e42409963/browser_patches/firefox/juggler/content/JugglerFrameChild.jsm#L41 be removed, would this help to test the extension? Right now Playwright waits on the page load and is unable to interact with the page. |
No description provided.
The text was updated successfully, but these errors were encountered: