You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Element Should Contain fails with TypeError if the element is not found #114
Execute: Element Should Contain id=doesNotExist Expected Text
Expected: fails with error similar to other keywords such as
ValueError: Element 'id=doesNotExist' not found.
or
ValueError: Element locator 'id=doesNotExist' did not match any elements.
Actual: fails with TypeError: argument of type 'NoneType' is not iterable
If pull request #53 to add element_should_not_contain keyword were accepted, it would have the same issue at this moment
Activity
emanlove commentedon Oct 2, 2012
'Get Text' and 'Element Should Contain' now throws exception if element is not found. See #127.
ombre42 commentedon Dec 6, 2012
Now fails with
ValueError: Element locator '' did not match any elements.
in 1.1