Is there a action on website test automation if the element is out of view?

been trying the action “is visible/present” it passes the test even it is out of the view, any solutions/idea?

the element I have been trying is already in DOM

Hi @Sheep,
You can use the action count elements which has the field VisibleOnly with a validation on the output like in the image below:

By providing an XPATH for example I can count any element that appears on the screen and validate that it’s there exactly once.
Or you can change it to 0 to validate that it’s out of view.

1 Like

This topic was automatically closed after 180 days. New replies are no longer allowed.