Closed Bug 1231871 Opened 9 years ago Closed 8 years ago

Marionette-back Selenium Python client does not support profiles

Categories

(Remote Protocol :: Marionette, defect)

1.9.0 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: edluzonjr, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: pi-marionette-httpd)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

Steps to reproduce:

I want to use Marionette via Selenium to launch a Firefox with attached Firefox extensions (e.g. Firebug, FirePath).

When Marionette is disabled, Selenium can launch Firefox with the desired extension:
            RemoteWebDriver.__init__(self,
            command_executor=ExtensionConnection("127.0.0.1", self.profile,
            self.binary, timeout),
            desired_capabilities=capabilities,
            keep_alive=True)

However, when Marionette is enabled, Selenium launches a Firefox without a profile, so I have no way to attach extensions:

        if "marionette" in capabilities and capabilities['marionette'] is True:
            # Let's use Marionette! WOOOOHOOOOO!
            if "binary" in capabilities:
                self.binary = capabilities["binary"]
            self.service = Service(executable_path, firefox_binary=self.binary)
            self.service.start()

            RemoteWebDriver.__init__(self,
                command_executor=self.service.service_url,
                desired_capabilities=capabilities,
                keep_alive=True)

Hence, my question - does Marionette supports Firefox Profile?
If it does, any hint on how I can modify the Selenium code above to enable Firefox Profile\Extentions when launching Firefox?
You’re right that it does look like the Marionette specific code path in the Selenium Python client appears not to take the profile into consideration.  Since there is also no way of passing along flags to the binary, this indeed makes it impossible to provide a custom profile.
Blocks: webdriver
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Does Marionette support Firefox Profiles? → Marionette-back Selenium Python client does not support profiles
This should quite likely live as an issue on the Selenium project’s issue tracker, but I suppose it’s useful to keep track of in Bugzilla too.
landed in https://github.com/mozilla/geckodriver/commit/3045c00a77b7ef7220ec9a6b318cae0756221a87 and has been released in 0.7.1
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.