TestProject Forum

How do I create a validation that fail if an element is visible? [SOLVED]

How do I create a validation that fail if an element is visible?

I tried using the validation called “div not present or visible” but it doesn’t work.

The element was shown on the website and yet the test still passed.

1 Like

Hi Gary, you can use Is Visible or Is Present but just invert the step result. This option appears under Advanced Options when you are editing a step (scroll to the bottom).

See Is it possible to perform Negative Validations?