Possibility to set webDriver's capabilities through the Configuration #431

Closed
juliaviluhina opened this Issue Dec 1, 2016 · 3 comments

Projects

None yet

3 participants

@juliaviluhina
Contributor
juliaviluhina commented Dec 1, 2016 edited

It would be convenient if setting webDriver's capabilities(or some capabilities) was available through the Configuration. And webDriver (created automatically by Selenide) could use this information about capabilities from Configuration.
Could you add this feature, please?

For example

In Selenide 4.x (and in Selenium 3.x)
It can be possible to use old versions Firefox (v<48) with Firefox webDriver
For this purpose, capability "marionette" should be set as false, and these capabilities should be used in webDriver creation.

According to Wiki page "How Selenide creates WebDriver"
two described options work correctly.

Option 1 - custom creation Firefox webDriver
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("marionette", false);
setWebDriver(new FirefoxDriver(capabilities));
However, custom webDriver creation requires custom webDriver closing.

Option 2 - usage factory that implements interface WebDriverProvider

Both these methods are not easy to understanding for beginners and a bit bulky.

@juliaviluhina juliaviluhina changed the title from firefox v<48 usage with firefox webdriver to Possibility to set webDriver's capabilities through the Configuration Dec 2, 2016
@asolntsev
Member

Hi @juliaviluhina !
Thank you for the ticket, but isn't it a duplicate of #397 ?

@juliaviluhina
Contributor

Hello @asolntsev )
Yes, you are right, it is a duplicate of #397
I close my ticket

@vinogradoff
Collaborator

@juliaviluhina 4.2 has solution for both using firefox without marionette and adding any arbitary capability via command line (SystemProperties)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment