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.

[šŸš€ Feature]: Java/CS FirefoxProfile to support addExtensioin temporary

See original GitHub issue

Feature and motivation

Add to FirefoxProfile::addExtension option to add extensions as temporary

Other languages (Python, Ruby and Javascript) support providing config of adding extension as temporary For some reason Java/C# doesnā€™t provide config, just provides false, or nothing https://github.com/SeleniumHQ/selenium/blob/trunk/java/src/org/openqa/selenium/firefox/AddHasExtensions.java#L105 https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Firefox/FirefoxDriver.cs#L299

Usage example

When testing on release (non developer/nightly), an ā€˜unsignedā€™ xpi wonā€™t load if it isnā€™t loaded as temporary

  • where localy signed doesnā€™t count as signed.

On windows, when unpacking the xpi to load the folder, can lead to failures because of windows adding content like thumbs.db

		FirefoxProfile firefoxProfile = new FirefoxProfile();
		firefoxProfile.addExtension(a, true);

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
titusfortnercommented, Nov 25, 2021

So, this feature wonā€™t be part of FirefoxProfile class, but we can add support to the driverā€™s installAddon method.

0reactions
github-actions[bot]commented, Jan 3, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

As a Firefox extension developer, I would like to install a ...
Firefox is configured to allow temporary extensions, either by changing the configuration or using the nightly or dev builds. What did I getĀ ......
Read more >
Adding extension through selenium firefox profile success. But ...
1 Answer 1 ... When you ask Selenium to use a profile, it copies it to a temporary location and use this copy....
Read more >
Profile Manager - Create, remove or switch Firefox profiles
Manage profiles when Firefox is open ... Type about:profiles into the address bar and press the EnterReturn key. This will open the About...
Read more >
Temporary installation in Firefox
This article describes how you can temporarily install an extension in Firefox for testing and debugging. The extension stays installedĀ ...
Read more >
Mozilla/web-ext: A command line tool to help build, run, and ...
I had the same issue but i solved it by using Firefox Developer edition instead which allows you to install unsigned extensions. This...
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