Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to set DesiredCapabilities for firefox 53.0 with selenium 3.4.0 and geckdriver 0.16.0 #3890

Closed
serpro69 opened this issue Apr 24, 2017 · 7 comments

Comments

@serpro69
Copy link

serpro69 commented Apr 24, 2017

Meta -

OS: Windows 7 x64

Selenium Version: 3.4.0

Browser: Firefox

Browser Version: 53.0 (64-bit)

Expected Behavior -

setting driver binary path with firefoxOptions

Actual Behavior -

org.openqa.selenium.SessionNotCreatedException: Unable to find a matching set of capabilities

Steps to reproduce -

FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setPreference("enableNativeEvents", true);

FirefoxOptions options = new FirefoxOptions();
options.setBinary(browserBinary);
options.toCapabilities();

DesiredCapabilities desired = DesiredCapabilities.firefox();
desired.setCapability("browserName", "firefox");
desired.setCapability("browserVersion", "53.0");
desired.setCapability("platformName", "Windows");           
desired.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);
System.setProperty("webdriver.gecko.driver", driverBinary);

this returns org.openqa.selenium.SessionNotCreatedException: Unable to find a matching set of capabilities

Tried a variety of ways to set-up browser binary and all without positive outcome.
This:

FirefoxOptions options = new FirefoxOptions();
...
desired.setCapability(FirefoxOptions.FIREFOX_OPTIONS, options.setBinary(driverBinary));

returns the same exception.

@serpro69
Copy link
Author

serpro69 commented Apr 24, 2017

So basically if we create a new FirefoxDriver() and provide capabilities as argument, we always get the above mentioned exception (Unable to find a matching set of capabilities)
If we create new FirefoxDriver() and provide options as an argument to it, then the driver is able to build.

new FirefoxOptions().addCapabilities() also returns the aforementioned exception.

Changing the title as this issue is with using all desired capabilities.

@serpro69 serpro69 changed the title Not able to set browser binary for firefox with selenium 3.4.0 and geckdriver 0.16.0 Not able to set DesiredCapabilities for firefox 53.0 with selenium 3.4.0 and geckdriver 0.16.0 Apr 24, 2017
@ghostwords
Copy link

I might be running into the same issue with Python bindings. Upgrading to the latest geckodriver (0.16.0) produces WebDriverException: Message: marionette was not a the name of a known capability or a valid extension capability for every test. Downgrading bindings from 3.4.0 to 3.3.3 fixes the issue.

@barancev
Copy link
Member

Do you run it locally (FirefoxDriver) or remotely (RemoteWebDriver)?

@serpro69
Copy link
Author

serpro69 commented Apr 26, 2017

@barancev Locally

@chamiz
Copy link

chamiz commented Apr 26, 2017

Duplicate of issue #3884

@chamiz
Copy link

chamiz commented Apr 26, 2017

Any reason for closing this issue? Today I upgraded to Selenium 3.4 and I got the exactly same issue with above mentioned versions.

@AutomatedTester
Copy link
Member

Since this is a duplicate as you stated and the issue is in GeckoDriver not selenium

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants