Skip to content

Add YAML support for processing capabilities files when using remote Selenium Grids #2403

Closed
@mdmintz

Description

@mdmintz

Add YAML support for processing capabilities files when using remote Selenium Grids

Currently, there's only support for Python and JSON formats.

Resolving this will also resolve #2401

For more information on capabilities files, see: SeleniumBase/examples/capabilities/ReadMe.md

Here's an example run command that's expected to work once this new feature is added:

pytest --browser=remote --server=USERNAME:KEY@hub.browserstack.com --port=80 --cap-file=capabilities/sample_cap_file_BS.yml

Here's an example .yml file that was generated from https://www.browserstack.com/docs/automate/capabilities:

platforms:
  - browserName: safari
    osVersion: 17
    deviceName: iPhone 15 Pro Max
buildIdentifier: ${BUILD_NUMBER}
parallelsPerPlatform: 1
projectName: My Project
browserstackLocal: true
debug: true
networkLogs: true

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions