Wrong Type Hint on some keywords. (locator: Union[WebElement, None, str]
)
#1880
Labels
Milestone
locator: Union[WebElement, None, str]
)
#1880
Some keywords like
Capture Element Screenshot
do have a type hint, that allowsWebElement
,None
andstr
.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 errorTypeError: expected string or bytes-like object, got 'NoneType'
Fix would be to just remove the None.
The text was updated successfully, but these errors were encountered: