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
npm install selenium-webdriver
as suggested in the linkgeckodriver-0.8.0-OSX.gz
, unrar it, and changed the name to wires
as instructed in the link. And I ensured it is executable with chmod +x wires
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 127.0.0.1 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!