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

Need additional Firefox config option to disable addon signing #303

Closed
adam-nielsen opened this issue Jun 16, 2016 · 3 comments
Closed

Need additional Firefox config option to disable addon signing #303

adam-nielsen opened this issue Jun 16, 2016 · 3 comments

Comments

@adam-nielsen
Copy link

There are some issues with Selenium not working with recent versions of Firefox. It turns out this is because Firefox requires add-on signing, the Selenium WebDriver add-on is not signed, so Selenium cannot remote control Firefox.

As a workaround, the Firefox profile can be modified to disable add-on signing, e.g.:

$caps = Facebook\WebDriver\Remote\DesiredCapabilities::firefox();
$profile = $caps->getCapability(Facebook\WebDriver\Firefox\FirefoxDriver::PROFILE);
$profile->setPreference("xpinstall.signatures.required", false);
$caps->setCapability(Facebook\WebDriver\Firefox\FirefoxDriver::PROFILE, $profile);
$webDriver = Facebook\WebDriver\Remote\RemoteWebDriver::create(
    'http://localhost:4444/wd/hub', $caps
);

I see in DesiredCapabilities::firefox() it is already setting a user preference, so would it be possible to also set xpinstall.signatures.required to false in here, so that the unsigned Selenium addon can still run?

@OndraM
Copy link
Collaborator

OndraM commented Jul 18, 2016

This won't help, as this configuration option will not be available since Firefox 48, see https://wiki.mozilla.org/Add-ons/Extension_Signing

The current extension-based Firefox WebDriver won't work in FF 48+.

We would probably need to either start using the Marionette driver in Firefox 48 or stick with Firefox ESR.

@myBestSoftAndPref
Copy link

How to override the Firefox Add-on Signing requirement
http://www.ghacks.net/2016/08/14/override-firefox-add-on-signing-requirement/

@OndraM
Copy link
Collaborator

OndraM commented Oct 12, 2016

This is solved by Geckodriver https://github.com/mozilla/geckodriver in Firefox 48+, which replaces the WebDriver addon implementation.

@OndraM OndraM closed this as completed Oct 12, 2016
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