Skip to content

[🚀 Feature]: Support stereotypes configs from the CLI with Relay #10115

@cytung

Description

@cytung

Feature and motivation

When I'm trying to relay commands to a service endpoint via CLI, I only found 4 options in the CLI Options Docs (--service-url, --service-host, --service-port and --service-status-endpoint). I cannot find an option that corresponds to configs for the [relay] in TOML Options to define stereotypes supported by the service.

Usage example

According to selenium/java/src/org/openqa/selenium/grid/node/relay/RelayOptions.java, it seems like configs should contain maxSessions and stereotype, so the usage may look like:

java -jar selenium-server-<version>.jar node --relay-configs max-sessions=1 stereotype='{"browserName": "safari", "platformName": "iOS",  "appium:platformVersion": "14.5"}' --service-url "http://localhost:4723/wd/hub"

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-gridEverything grid and server relatedI-enhancementSomething could be better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions