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.
What happened?
The documentation for Remote WebDriver does not explain how to connect to a Selenium Grid using Python.
The problem with
get_default_chrome_options()is set out at #2621, but theRemoteinstantiation could do with some help. When you open the full code from where this code is drawn, there is noservervariable 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.