github seleniumbase/SeleniumBase v1.37.5
Add option: "--cap-string=STRING" to set capabilities

latest releases: v4.32.12, v4.32.11, v4.32.10...
4 years ago

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

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.