hasVisibleNode
Checks whether a visible node matching the provided selector string exists in the current UI tree.
Unlike resolveNode, this method does not throw an exception if the node is missing or invisible, making it safe for conditional branching in tests.
Return
true if a visible node matches the selector, false otherwise.
Parameters
selector
the query matching the target element.
Checks whether a visible node matching the provided selector exists in the current UI tree.
Unlike resolveNode, this method does not throw an exception if the node is missing or invisible, making it safe for conditional branching in tests.
Return
true if a visible node matches the selector, false otherwise.
Parameters
selector
the query matching the target element.