Hi, anyone can advice how to use verifyAlertNotPresent()? I was trying to loop if alert is not present:
for (int i = 0; i < 2; i++) {
if (WebUI.verifyAlertNotPresent(2) {
WebUI.click(BtnDelete’))
WebUI.delay(2)
}
But it is giving this error, and I’m not sure how to fix
Reason:
groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.verifyAlertNotPresent() is applicable for argument types: (java.lang.Integer, applicationfunction.AdjustmentFunctions$_fn_deleteAdjustment_closure1) values: [2, applicationfunction.AdjustmentFunctions$_fn_deleteAdjustment_closure1@37637a24]
Possible solutions: verifyAlertNotPresent(int), verifyAlertNotPresent(int, com.kms.katalon.core.model.FailureHandling), verifyAlertPresent(int), verifyAlertPresent(int, com.kms.katalon.core.model.FailureHandling), verifyTextNotPresent(java.lang.String, boolean)