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

Options for webdriver #1731

Closed
Kirguir opened this issue Aug 22, 2019 · 0 comments · Fixed by #1744
Closed

Options for webdriver #1731

Kirguir opened this issue Aug 22, 2019 · 0 comments · Fixed by #1744

Comments

@Kirguir
Copy link
Contributor

Kirguir commented Aug 22, 2019

Motivation

Drivers for different browsers are configured differently - for the chromedriver "switches", which allow the use of fake media devices, are passed in arguments as a command line, for the geckodriver the same is done through preferences (about:config).

let request = json!({
       "capabilities": {
            "alwaysMatch": {
                "moz:firefoxOptions": {
                    "prefs": {
                        "media.navigator.streams.fake": true,
                        "media.navigator.permission.disabled": true,
                    },
                    "args": args,
                }
            }
        }
    });

There is currently no way to pass preferences.

Proposed Solution

Add the ability to pass preferences through environment variables

Alternatives

Configure the client for the web driver through a file, where you can describe all the options - arguments and preferences.

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

Successfully merging a pull request may close this issue.

1 participant