Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

running tests against selenoid "grid" and adding "selenoid:options" capability #1087

Answered by mdmintz
webmoskal asked this question in Q&A
Discussion options

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,
 )
You must be logged in to vote

@webmoskal This has been resolved by https://github.com/seleniumbase/SeleniumBase/releases/tag/v2.2.2

(For minimum SeleniumBase version 2.2.2.)

Replies: 2 comments

Comment options

@webmoskal I created a ticket for this and will have a new release soon: #1088

You must be logged in to vote
0 replies
Comment options

@webmoskal This has been resolved by https://github.com/seleniumbase/SeleniumBase/releases/tag/v2.2.2

(For minimum SeleniumBase version 2.2.2.)

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /