Element Should Contain fails with TypeError if the element is not found #114

Closed
ombre42 opened this Issue Sep 19, 2012 · 2 comments

Projects

None yet

2 participants

@ombre42
Contributor
ombre42 commented Sep 19, 2012

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

@emanlove
Contributor
emanlove commented Oct 2, 2012

'Get Text' and 'Element Should Contain' now throws exception if element is not found. See #127.

@ombre42
Contributor
ombre42 commented Dec 6, 2012

Now fails with
ValueError: Element locator '' did not match any elements.
in 1.1

@ombre42 ombre42 closed this Dec 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment