JSONWire protocol support for Firefox profiles?

479 views
Skip to first unread message

David

unread,
Dec 7, 2011, 9:32:07 PM12/7/11
to webdriver
Does the JSONWire protocol and hence RemoteWebDriver officially (or
even unofficially) support Firefox profiles? If yes, is there a
specification on how to interact with the protocol to specify profile?

I did a quick search and noticed a few posts about how to do it with
RemoteWebDriver in Java and .NET, but also mentions of getting
exceptions trying to do so.

And currently looks like JSONWireProtocol doesn't spec out how you can
specify a Firefox profile.

Is it on the roadmap then if not supported yet? Would be helpful for
third party clients like PHP and Perl to be able to support Firefox
profiles.

Daniel Wagner-Hall

unread,
Dec 8, 2011, 7:00:39 AM12/8/11
to webd...@googlegroups.com
Yep - you specify it as part of the POST /session command:

https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session

In the desiredCapabilities object, you can specify the firefox_profile
key, and give it a Base64-encoded profile - see
FirefoxDriver#extractProfile in the Java bindings

> --
> You received this message because you are subscribed to the Google Groups "webdriver" group.
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
>

David

unread,
Dec 8, 2011, 1:45:35 PM12/8/11
to webdriver
Thanks for the info.

On Dec 8, 4:00 am, Daniel Wagner-Hall <dawag...@gmail.com> wrote:
> Yep - you specify it as part of the POST /session command:
>
> https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session
>
> In the desiredCapabilities object, you can specify the firefox_profile
> key, and give it a Base64-encoded profile - see
> FirefoxDriver#extractProfile in the Java bindings
>

David

unread,
Dec 9, 2011, 3:24:21 PM12/9/11
to webdriver
Haven't looked at the Java bindings yet, but was wondering, does this
method also work for adding/inserting extensions like Firebug into
profile? I recall the native FirefoxDriver for Java, etc. have code
examples that tell you to load the XPI file for the extension with the
profile to use it.

If we have to load XPI file with profile, I guess we have to figure
out how to do that with our target language/platform then pass as
base64 encoded value to RemoteWebDriver as a capability?

On Dec 8, 4:00 am, Daniel Wagner-Hall <dawag...@gmail.com> wrote:

> Yep - you specify it as part of the POST /session command:
>
> https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session
>
> In the desiredCapabilities object, you can specify the firefox_profile
> key, and give it a Base64-encoded profile - see
> FirefoxDriver#extractProfile in the Java bindings
>

Daniel Wagner-Hall

unread,
Dec 9, 2011, 4:37:09 PM12/9/11
to webd...@googlegroups.com
Yep, see FirefoxProfile#toJson
Reply all
Reply to author
Forward
0 new messages