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

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

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

Comments

Projects
None yet
3 participants
@juliaviluhina
Contributor

juliaviluhina commented Dec 1, 2016

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

This comment has been minimized.

Show comment
Hide comment
@asolntsev

asolntsev Dec 10, 2016

Member

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

Member

asolntsev commented Dec 10, 2016

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

@juliaviluhina

This comment has been minimized.

Show comment
Hide comment
@juliaviluhina

juliaviluhina Dec 10, 2016

Contributor

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

Contributor

juliaviluhina commented Dec 10, 2016

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

@vinogradoff

This comment has been minimized.

Show comment
Hide comment
@vinogradoff

vinogradoff Dec 13, 2016

Collaborator

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

Collaborator

vinogradoff commented Dec 13, 2016

@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