Skip to content

[🐛 Bug]: [py] confusing error when creating webdriver.Remote() without options #15618

Closed
@cgoldberg

Description

@cgoldberg

Description

In Python, if you try to create a webdriver.Remote() instance without passing a driver options.Options() instance as a keyword argument (options), you get the following error:

AttributeError: 'NoneType' object has no attribute 'to_capabilities'

... which isn't very helpful.

This happens if you try to create it with no arguments or try to create it with options.Options() instance as a positional argument.

Reproducible Code

from selenium import webdriver

driver = webdriver.Remote()

Debugging Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyPython BindingsI-defectSomething is not working as intendedOS-linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions