I want to test if the page contains "TEXT1 or "TEXT2".
Page Should Contain TEXT1 or TEXT2.
Any suggestion how can I do this? Currently I can only check for one text.
You can use
Page Should Contain Element
with a locator
xpath=//*[contains(text(),'TEXT1') or contains(text(),'TEXT2')]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With