I am using Katalon 7.0 and if use below script, it would not failed or stop the test even the object is not present on page. Same issue with this ticket , verifyElementVisible and verifyElementPresent not working with new 5.8.3 version Please advise
WebUI.verifyElementPresent(findTestObject('Page_My Account/span_Thank you for registering'), 30, FailureHandling.STOP_ON_FAILURE)
Please find the following release note: https://docs.katalon.com/katalon-studio/new/version-70.html#fixes
There’s a fix:
Bug: [WebUI Keywords] The
verifyElementNotPresent() keywords should return
false instead of throwing an exception when the verified elements do not exist.
hi , i am using 7.0.6, was this issue fixed in 7.0.7?
That’s not what I meant. I meant the documented behavior of verifyElementPresent should return false instead of throwing error, but in earlier versions it actually throws the exception. If you want your test to stop when an element is not present, then please explicitly use