Feature or bug? contains() doesn't care about visibility. #9308
Unanswered
dzschille
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it intended that contains() doesn't care about visibility? I was surprised that this test failed:
HTML
Test:
Contains() finds the first "next" which is not visible in this example. So an error is thrown because click() cares about visibility:
The explanation for "display: none" is:
So my question is if it is intended that contains() also looks for not visible elements? I could not find an explanation in the docs about it.
Beta Was this translation helpful? Give feedback.
All reactions