Failure creating RemoteWebDriver - Selenium v3.3.0, GeckoDriver v0.15.0, FF v52.0
Meta -
OS: OSX 10.11.6 Selenium Version: 3.3.0 Browser: Firefox Browser Version: 52.0 (64-bit) GeckoDriver Version: 0.15.0
Expected Behavior -
A new RemoteWebDriver instance is created.
Actual Behavior -
org.openqa.selenium.SessionNotCreatedException: Profile has been set on both the capabilities and these options, but they're different. Unable to determine which one you want to use. Caused by: java.lang.IllegalStateException: Profile has been set on both the capabilities and these options, but they're different. Unable to determine which one you want to use. at org.openqa.selenium.firefox.FirefoxOptions.addDesiredCapabilities(FirefoxOptions.java:332)
Steps to reproduce -
DesiredCapabilities desiredCapabilities = new FirefoxOptions().setProfile(new FirefoxProfile()).addTo(DesiredCapabilities.firefox());
RemoteWebDriver remoteWebDriver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), desiredCapabilities);
RemoteWebDriver creation is now working for me using latest Selenium (Java bindings):
- OS: OSX 10.11.6
- Selenium Version: 3.3.1
- Browser: Firefox
- Browser Version: 52.0 (64-bit)
- GeckoDriver Version: 0.15.0