Skip to content

[🐛 Bug]: Python code samples for Remote WebDriver documentation doesn't show how to configure the connection #2623

@tommorris

Description

@tommorris

What happened?

The documentation for Remote WebDriver does not explain how to connect to a Selenium Grid using Python.

options = get_default_chrome_options()
driver = webdriver.Remote(command_executor=server, options=options)

The problem with get_default_chrome_options() is set out at #2621, but the Remote instantiation could do with some help. When you open the full code from where this code is drawn, there is no server variable set, presumably because it is injected elsewhere in the test suit. It'd be helpful for the reader to be able to work out "this is the URL of the server you're running it".

The Java, Ruby and C# code samples all use "gridUrl" (or equivalent) as the variable name here, which might be preferable to "server" as it hints that it's a string containing a URL rather than some other kind of object.

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

Documentation bug—applies to all browsers/operating systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions