yashaka / selene

User-oriented Web UI browser tests in Python

Home Page:https://yashaka.github.io/selene/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collection.matching(be.present) returns True if empty

SanKolts opened this issue · comments

Following code

browser.all('.some-random-and-for-sure-is-not-presented-in-a-dom-class').matching(be.present)

returns True but it should be False

This leads to situations when
browser.all('.some-random-and-for-sure-is-not-presented-in-a-dom-class').should(be.present) passes
and
browser.all('.some-random-and-for-sure-is-not-presented-in-a-dom-class').should(be.absent) fails.