I have written a piece of code to check if an Element is present using the VerifyElementPresent with the Failure Handling as CONTINUE_ON_FAILURE
I have assigned this statement to a boolean variable
elePre = WebUI.verifyElementPresent(findTestObject('Object Repository/Login/pop_Alert'), 3, FailureHandling.CONTINUE_ON_FAILURE)
When I execute the script, the element is not found on the DOM and the execution is stopped with the
com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: 'Object Repository/Login/pop_Alert' located by 'By.xpath: //div[contains(@id,'snackbar')]/div[@role='alertdialog']/div/span' not found (Root cause: com.kms.katalon.core.exception.StepFailedException: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: 'Object Repository/Login/pop_Alert' located by 'By.xpath: //div[contains(@id,'snackbar')]/div[@role='alertdialog']/div/span' not found
Execution does not continue and WebElementNotFoundException exception is thrown
I’ve tried setting the Failure Handling to Optional but the issue is the same
My Requirement is that the execution should continue
