Verify element present does not work as expected

I am using the version of 8.05 windows. I want to use verify element present to verify whether the element exists, but when the element does not exist, it will report an error. The reason is that the element does not exist, but I hope it can return false

If you want the WebUI.verifyElementPresent(TestObject,int,FailureHandling) keyword NOT to throw Exception, then you should specify FailureHandling.OPTIONAL as the 3rd argument.

boolean presence = WebUI.verifyElementPresent(findTestObject(...), 20, FailureHandling.OPTIONAL)

I am not sure what you are asking to me. Do not let me guess. Please ask your question more clearly.

I want to print the output value of verify element present, but it cannot be printed. Is the printed value true or false?

You used println(...) statement. The output from the println statement will be visible in the Console tab. It will not be visible in the Log Viewer tab. Please check the Console tab.

If you would like to see the output in the Log Viewer tab, you should not use println(...) statement. Instead you should use WebUI.comment keyword, like this:

WebUI.comment("is_present: " + is_present )

thank you,i success