Skip to content

Wrong Type Hint on some keywords. (locator: Union[WebElement, None, str]) #1880

@Snooz82

Description

@Snooz82

Some keywords like Capture Element Screenshot do have a type hint, that allows WebElement, None and str.
But the None is actually wrong.
There are some keywords that actually would work with ${None} as a locator, but this one and others actually does not work and raises the error TypeError: expected string or bytes-like object, got 'NoneType'

Fix would be to just remove the None.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions