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

Add ability to pass additional options for chrome/gecko drivers #1681

Closed
Kirguir opened this issue Jul 29, 2019 · 3 comments · Fixed by #1703
Closed

Add ability to pass additional options for chrome/gecko drivers #1681

Kirguir opened this issue Jul 29, 2019 · 3 comments · Fixed by #1703

Comments

@Kirguir
Copy link
Contributor

Kirguir commented Jul 29, 2019

Motivation

At the moment there is no possibility to pass command line flags (or "switches") for a chrome driver. This is needed to access the media device in tests. For example, such as '--use-fake-device-for-media-stream', '--use-fake-ui-for-media-stream'.

Proposed Solution

Pass additional options through the environment variable 'GECKODRIVER_OPTIONS', as well as for the server part ('GECKODRIVER_ARGS').

@alexcrichton
Copy link
Contributor

This should in theory be supported via CHROMEDRIVER_ARGS (like geckodriver), does that work for you?

@Kirguir
Copy link
Contributor Author

Kirguir commented Jul 29, 2019

CHROMEDRIVER_ARGS its arguments for spawn binary. switches => Capabilities, they hardcoded at moment. if add flags here, it works.

@alexcrichton
Copy link
Contributor

Ah ok, makes sense! Sounds like a good feature to me to add and a PR should do the trick!

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.

2 participants