Skip to content

Add option to set capabilities with --cap-string=STRING #543

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

Merged
merged 3 commits into from
Apr 19, 2020

Conversation

mdmintz
Copy link
Member

@mdmintz mdmintz commented Apr 19, 2020

Add option to set browser desired capabilities with --cap-string=STRING

  • Example:
pytest basic_test.py --cap-string='{"browserName":"chrome","name":"test1"}' --server="127.0.0.1" --browser=remote

(Enclose cap-string in single quotes. Enclose parameter keys in double quotes.)

If using a local Selenium Grid with SeleniumBase, start up the Grid Hub and nodes first:

seleniumbase grid-hub start
seleniumbase grid-node start

For more information on setting browser desired capabilities, see: https://github.com/seleniumbase/SeleniumBase/blob/master/examples/capabilities/ReadMe.md

@mdmintz mdmintz merged commit 57fae1c into master Apr 19, 2020
@mdmintz mdmintz deleted the cap-string-parameter branch April 19, 2020 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant