Skip to content
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

Is it possible to load extension in firefox playwright - Java (getting loaded using xpi , but value of extension not reflecting) #16544

Closed
bibinmohana opened this issue Aug 15, 2022 · 3 comments

Comments

@bibinmohana
Copy link

I have tried using xpi file as given below

Path extpath= Paths.get("xpi path");
Args.add("disable-extensions-except="+extpath)
Args.add("--load-extension="+extpath)
Path profilepath=Paths.get(profile path)
BrowserContext browser=playwright.firefox().launchPersistentContext(path,lp)
Page page= browser.pages.get(0)
page.navigate("url")

While running am getting a "popup whether to add the extension " upon clicking ok manually its getting added , but the value for the extension is not getting fetched from profile.

Is there any way to fix this issue ?

@aslushnikov
Copy link
Collaborator

I don't think it is possible to run an extension in Firefox rn; please upvote #7297 to receive updates!

@bibinmohana
Copy link
Author

I don't think it is possible to run an extension in Firefox rn; please upvote #7297 to receive updates!

Thanks for the update .. I tried changing the above code in such a way that , instead of pointing to xpi file i gave the extension folder path in the profile directory , and its started loading extension but its loading in Nightly not in actual forefox is that the issue ?

@kilted-andres
Copy link

hey @bibinmohana
could you share functional your javascript or typescript code here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants