Updates:
        Status: Started

Comment #1 on issue 1236 by pekka.klarck: `XML` library: `Element Should Exist` and `Element Should Not Exist` keywords
http://code.google.com/p/robotframework/issues/detail?id=1236

This issue was updated by revision aa50db8fa71c.

Implemented and tested. Docs missing.

Implementing both of these was easy. The hard part was deciding how Element Should Exist should behave if there is more than one match. Get Element fails in that case so it would have been logical to behave the same way. I didn't, however, want to implement separate Elements Should Exist keyword so decided that more than one match is accepted.

It would be possible to implement additional Element Count Should Be keyword for matching element counts more precisely. Not sure is that worth the effort since this isn't likely to be that common use case, and you can pretty easily verify counts using first Get Elements and then e.g. Length Should Be from BuiltIn.

Element Should Not Exist was the most important keyword to add anyway.

Reply via email to