Unable to Verify Text is Present

I’m trying to use Verify Text is Present command, but it doesn’t work, as I always get the failure error “Unable to verify text ‘my string’ is present (Root cause: Text ‘my string’ is not present on page ).”
I get it both when the selected string is effectively present on page, both when it’s not present.
This is the command, as I’ve read from Katalon documents:

WebUI.verifyTextPresent(“my string”, false)

How can I solve this issue?

Thank you very much for your help


follow the advice on this page…

I’m sure someone can help if you add more about your issue here.