Closed Bug 1751301 Opened 3 years ago Closed 3 years ago

Unable to install the extension(.xpi) using selenium 3.14 with FireFox version 91.4.1esr (64-bit).

Categories

(WebExtensions :: Untriaged, defect)

Firefox 91
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: maheshmechx, Unassigned)

Details

Steps to reproduce:

Trying to install the .xpi file using selenium supported code.

Code sample.

public void setUpDriver(WebDriver webDriver) {
FirefoxProfile firefoxProfile = new FirefoxProfile();
FirefoxOptions firefoxOptions = new firefoxOptions();
firefoxProfile.addExtension("extension.xpi");
firefoxOptions.setProfile(firefoxProfile);
webDriver = new FirefoxDriver(firefoxOptions);
}

Actual results:

Above code works fine when I try to install the FireFox plugins like firefox_color-2.1.7-fx.xpi, firebug-2.0.19.xpi but when I try to install the extension build by our development team. I see firefox is launched without extension installation.

Note: Also tried to install google translator extension I had similar issue, Browser was launched without extension.

Expected results:

Should be able to install the company developed .xpi file because able to import and install manually but failed to do it automated way.

The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Product: Firefox → WebExtensions

Would you mind to look in the browser console if there are errors related to the extension that is expected to be installed by it is not?
Also attaching the xpi to this issue may help us to confirm its signed state is the expected one (that code should be installing the addon non temporarily).

As a workaround, you may also try another approach that allows to install the addon temporarily, we use that strategy in the webextension-polyfill:

Flags: needinfo?(maheshmechx)

Hello,

I’m from QA and I’m attempting to reproduce the issue in order to confirm it. As per Comment 2, it would be appreciated if you could attach the .xpi you are trying to install to further debug the issue. Thank you !

Thank you @Luca Greco and @ Alex Cornestean and apologies for the delayed response.

I'm using an in-house developed extension. So I would not be able to share the .xpi file. Sorry about that.
But I found another way to install it with the selenium Dev help.

Ticket for selenium team : https://github.com/SeleniumHQ/selenium/issues/10278

I believe it's a known issues as per selenium team. It would be fine to close this ticket.

Also ticket on Gecko driver from selenium team : https://github.com/mozilla/geckodriver/issues/1476

Flags: needinfo?(maheshmechx)

Hello Mpalled !

As per Comment 4, I will close the issue as WFM. Thank you !

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.