Hi there,
I want to verify image present on webpage, however it is throwing below error
Caused by: com.kms.katalon.core.exception.StepFailedException: Image: ‘C:\Users\SDhongadi\PassportCareplan.png’ is NOT present
below are the settings
source code:
Go to the webpage where image si present
boolean f=WebUI.verifyImagePresent(findTestObject(‘PGIs/CarePlan/Page_Identifi - Care Plan/img_passport’))
printf(f)
Image Setup

@Sdhongadi It may be that you should try to put in either a wait or delay statement to slow your browser until the image is fully on the page. So, before your boolean test, you could add, WebUI.delay(5)
or something like below:
WebUI.waitForElementVisible(findTestObject('PGIs/CarePlan/Page_Identifi - Care Plan/img_passport'), 10)
boolean f=WebUI.verifyImagePresent(findTestObject('PGIs/CarePlan/Page_Identifi - Care Plan/img_passport'))
Summary
or you can fancy it up some in one statement:
WebUI.waitForElementVisible(findTestObject('PGIs/CarePlan/Page_Identifi - Care Plan/img_passport'), 10)
WebUI.verifyMatch(WebUI.verifyImagePresent(findTestObject('PGIs/CarePlan/Page_Identifi - Care Plan/img_passport')).toString(), "true", false)
WebUI.waitForImagePresent might be better suited.
boolean present = WebUI.waitForImagePresent(
findTestObject('PGIs/CarePlan/Page_Identifi - Care Plan/img_passport'),
10)