Louis T Louis T - 3 months ago 78x
Java Question

Unsuccessful to use Marionette, the next generation of FirefoxDriver

According to this Mozilla Developer Network, there is no FirefoxDriver from Firefox 47, instead we use Marionette.

I followed the instructions in this link, but it doesn't work as expected. I am using Java, Firefox 47 and Mac OSX Capitan

  1. I installed selenium driver with this
    npm install selenium-webdriver
    as suggested in the link

  2. I set up the Marionette executable by downloading this file
    , unrar it, and changed the name to
    as instructed in the link. And I ensured it is executable with
    chmod +x wires

  3. I used Marionette like this, from Mozilla Developer

    DesiredCapabilities capabilities = DesiredCapabilities.firefox();
    capabilities.setCapability("marionette", true);

    Webdriver driver = new FirefoxDriver(capabilities);

But when I run the test, the same exception like this normal FirefoxFriver

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host on port 7055 after 45000 ms.

Is anyone successful to use Marionette? Am I missing something from Mozilla's instructions. Thanks


I had the same problem and just solved it by updating the Selenium version to 2.53.1.

Hope it helps!