TestProject Forum

Contains text OR contains text

An element on the page may have text ‘Payment Pending’ or ‘Order Placed.’

The test:
If element has either of those values, pass.
If element has neither of those values, fail.

I know about ‘Contains text’ validation, but how to use it as an OR condition?

Hi @Beth.Halstead.

You can achieve that using Regex, for example:

Kind regards,

1 Like