Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SanKolts opened this issue Jan 2, 2023 · 1 comment
Open

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

SanKolts opened this issue Jan 2, 2023 · 1 comment

Comments

@SanKolts
Copy link

SanKolts commented Jan 2, 2023

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.

@yashaka
Copy link
Owner

yashaka commented Jan 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants