How to use Marionette driver to launch Firefox?

I am totally new to automation. Currently, I am using selenium jars having version 2.53 which is not supporting Firefox version 47. After going through some of the discussions from online forums, I concluded that I need to use Marionette driver going further to user Firefox. However, whenever I am trying to use following piece of code, I get unreachable browser exception:

System.setProperty(“webdriver.gecko.driver”, “path/to/wires.exe”);
driver = new MarionetteDriver();

Please help me to make out where I am wrong.

Hi chaitanya,

you can ttry this
System.setProperty(“webdriver.gecko.driver”, “path/to/wires.exe”);
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(“marionette”, true);
WebDriver driver = new FirefoxDriver(capabilities);

i tried the same on linux machine did nt worked may be it can work if you are using windows machine

on June 30, 2016.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.