Skip to content

[Java client] Is it acceptable that getCapabilities may return null? #6903

Closed
@mykola-mokhnach

Description

@mykola-mokhnach

It is possible, that RemoteWebDriver's getCapabilities method returns null before createSession is called. I would like to make sure this is the expected behaviour or probably a typo in the source where this prefix is missing.
The affected line of code can be found here:

capabilities = capabilities == null ? new ImmutableCapabilities() : capabilities;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions