Skip to content

[🐛 Bug]: Documentation for Remote WebDriver is at odds with deprecation warning. #1366

@v-kumar

Description

@v-kumar

What happened?

Using ruby, for remote driver, the following example gives deprecation warning.

URL: https://www.selenium.dev/documentation/webdriver/drivers/remote_webdriver/

image

image

However, it is not clear how to use Options only instead.

What browsers and operating systems are you seeing the problem on?

ruby selenium web-driver, v 4.8.x

Activity

github-actions

github-actions commented on Apr 25, 2023

@github-actions
Contributor

@v-kumar, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

titusfortner

titusfortner commented on Apr 25, 2023

@titusfortner
Member

Yes, that code example is very much out of date.

As to the deprecation warning, instead of working with:

options = Remote::WebDriver::Capabilities.chrome

work with:

options = Options.chrome

The object has attribute accessors for each of the things you can change (#browser_version= & #platform_name=), so it should be more straightforward

v-kumar

v-kumar commented on Apr 26, 2023

@v-kumar
Author

It's not still clear how to configure the remote browser based on the above information. Is just passing browser: :remote, good enough?

  Capybara::Selenium::Driver.new app, browser: :remote, options: options,
titusfortner

titusfortner commented on Apr 26, 2023

@titusfortner
Member
ghost

ghost commented on Sep 13, 2023

@ghost

Ah yes chromus depricatus

shbenzer

shbenzer commented on Oct 16, 2024

@shbenzer
Contributor

@harsha509 I think this issue can probably be closed. The Browser Options section, and the referenced example, is no longer present in the Remote Webdriver Page

harsha509

harsha509 commented on Oct 16, 2024

@harsha509
Member

Documentation for using the Options class is now available, along with updated code examples: Chrome Options.

Closing as resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      [🐛 Bug]: Documentation for Remote WebDriver is at odds with deprecation warning. · Issue #1366 · SeleniumHQ/seleniumhq.github.io