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!
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
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/”;