How to have code with "Continue on Failure" not return as Failure in the Log viewer

I am trying to make a test which requires scrolling across the page if the element isn’t visible, until it finds the object, then clicks it.

This is the code that I am using to achieve this

The only issue is that since WebUI.verifyElementVisible is an assertion, I have to include the Failiure Handling or else the test will stop without evaluating the boolean, but when the test is completed, it still results in Failure in the logs, even though it is working as intended

Is there any way to have Katalon not mark this as a failure?

1 Like

Try OPTIONAL instead of CONTINUE_ON_FAILURE.

1 Like