TestProject Forum

Verify text is not present on the page

Hello,

I am trying to verify that certain text is not present on the page or in the element but I am unable to find an action or validation to do that. Could you please tell me what can I use in this case?

Thank you,
Ritika

Hi @rsood,

You can use the “Contains Text” validation like this:

And in the step settings you can invert the step result, thus turning it into “not Contains Text”,
to invert the step result go to the advanced options of this step, scroll to the bottom and you will find this option:

And now whenever text is present-> step fails
and when text is not present-> step passes