Re: Selenium::Remote::Driver & Firefox Marionette

1,731 views
Skip to first unread message

Daniel Gempesaw

unread,
Feb 4, 2016, 4:56:47 PM2/4/16
to Vangelis Katsikaros, selenium-re...@googlegroups.com

Hi Vangelis,

I’m only vaguely familiar with Marionette and how it’s interacting with Webdriver. I believe I read somewhere that future versions of Webdriver will be using Marionette by default at some point. Unfortunately, I haven’t used Marionette, so I’m not sure I’ll be of much help.

Based on their setup page https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver#Using_RemoteWebDriver it looks like you may be able to accomplish it just by specifying certain caps during startup and having downloaded a Marionette-enabled Firefox.

use Selenium::Remote::Driver;

my $m = Selenium::Remote::Driver->new(
    desired_capabilities => {
        browserName => 'firefox',
        marionette => 'true'
    }
);

On my machine, my webdriver server throws an error that I haven’t downloaded the wires project

Could not create new session: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/jgraham/wires. The latest version can be downloaded from https://github.com/jgraham/wires at (eval 32) line 510.

Presumably you’d want to download wires, and then restart your selenium-server-standalone.jar with the webdriver.gecko.driver property like

$ java -jar selenium-server-standalone-2.48.2.jar -Dwebdriver.gecko.driver=/path/to/wires/executable

Good luck!


On Thu, Feb 4, 2016 at 7:53 AM Vangelis Katsikaros <vkats...@gmail.com> wrote:
Hi Daniel

I would like to ask if it sounds interesting to developing in
Selenium::Remote::Driver a way to talk to a Marionette enabled Firefox [1].

My name is Vangelis and I work for www.adzuna.co.uk, a search engine for job
ads. I use Firefox in a headless environment but I would like to change browser
or plugin preferences after the browser has started - without having to restart
it as restarting could be too expensive.

I am willing to put some personal effort there. Your input would be valuable
since you are the driver behind SRD. What do you think?

Regards
Vangelis

[1] https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette

Sandeep Jain

unread,
Jun 21, 2016, 4:17:53 PM6/21/16
to Selenium Remote Driver

Hi I am unable to use marionette with Remote webdriver. Here is the eg:

System.setProperty(“webdriver.gecko.driver”, “…\\wires-0.6.2-win\\wires.exe”);
DesiredCapabilities cap = DesiredCapabilities.firefox();

cap.setCapability(“marionette”, true);
cap.setBrowserName(“firefox”);

driver = new RemoteWebDriver(new URL(“http://10.121.64.185:4444/wd/hub”), cap);

final String url = “https://www.google.com/”;


Do anyone has solution to this problem ?

Daniel Gempesaw

unread,
Jun 23, 2016, 3:00:06 PM6/23/16
to Selenium Remote Driver
Hi Sandeep,

Looks like you're using Java to run Selenium - this user group is particularly dedicated to the Perl bindings for Selenium, so your question is better suited for the general Selenium google group:


Unfortunately I don't have much experience with Java, so I can't provide much guidance. Good luck!
Reply all
Reply to author
Forward
0 new messages