I noticed that in the Wallaby.Query
docs, under Query Options
it says that the visible
option “Determines if the query should return only visible elements (default: true
).”
I initially thought this meant that visible: false
would match any visible or invisible element, since visible: true
only matches visible elements. Using the option, however, it became clear visible: false
matches invisible elements only.
Could it be an idea to have the option visibility
that has values visible
, invisible
or any
?
I often want to match elements regardless of whether they are visible or not. This would make that easier. Also, I have noticed that elements get hovered “spontaneously”, which may change their visibility unpredictably. That’s one reason why I don’t want to specify the visibility (true/false) when querying elements.