Ignore the results of a step in the script

There is properly a simple solution but I can’t find it.

I want to ignore the if()-step in my test result. It is not relevant if it failed or not for my end-state of the test case.
It can be marked as passed or anything positive. I need to get in the If-statement without error…
How can I do this?

if(WebUI.verifyTextPresent(‘xxxxxxxx’, false))
WebUI.comment(‘didnt found it but do something else’)
else …

Use if(WebUI.verifyTextPresent('x', false, FailureHandling.OPTIONAL))

1 Like

Thank!! I was one the wrong track…