Skip to content

Add compatibility with "Selenoid" Selenium grids #1088

@mdmintz

Description

@mdmintz

Discussed in #1087

Originally posted by webmoskal November 28, 2021
Can't figure out how to make desired_cap work with selenoid. Selenoid expects "selenoid:options", {"enableVNC": True}

Tried: pytest [test] --server=http://localhost:4444/wd/hub --chrome --cap-string='{"selenoid:options": {"enableVNC": true}}' True triggers json.loads error

So far only able to make it work by adding chrome_options.set_capability("selenoid:options", {"enableVNC": True}) to seleniumbase>core>browser_launcher.py>get_remote_driver

        if selenium4:
            chrome_options.set_capability("cloud:options", capabilities)
            chrome_options.set_capability("selenoid:options", {"enableVNC": True})
            return webdriver.Remote(
                command_executor=address,
                options=chrome_options,
                keep_alive=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