Equivalent of FirefoxDriver(*profile*) for MarionetteDriver in Selenium Webdriver?
You shouldn't use MarionetteDriver
. As it states in the documentation:
/** * An implementation of the {#link WebDriver} interface that drives Firefox using Marionette interface. * * @deprecated One should use FirefoxDriver with capability marionette = true or false respectively. */
You should start a FirefoxDriver
and enable marionette in the desired capabilities.
DesiredCapabilities dc=DesiredCapabilities.firefox();FirefoxProfile profile = new FirefoxProfile();dc.setCapability(FirefoxDriver.PROFILE, profile);dc.setCapability("marionette", true);Webdriver driver = new FirefoxDriver(dc);