# How I can verify image in webUI using groovy 

**URL:** <https://forum.katalon.com/t/how-i-can-verify-image-in-webui-using-groovy/87692>\
**Category:** Bug Report\
**Tags:** web-testing, katalon-studio\
**Created:** [April 28, 2023, 7:52am UTC](https://forum.katalon.com/t/how-i-can-verify-image-in-webui-using-groovy/87692 "2023-04-28T07:52:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shore](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shore/32/22831_2.png) [@shore](https://forum.katalon.com/u/shore)\
**Post date:** [April 28, 2023, 7:52am UTC](https://forum.katalon.com/t/how-i-can-verify-image-in-webui-using-groovy/87692/1 "2023-04-28T07:52:26Z")

</div>

Test Cases/Login FAILED.  
Reason:  
com.kms.katalon.core.exception.StepFailedException: Unable to verify image present  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)  
at com.kms.katalon.core.webui.keyword.builtin.VerifyImagePresentKeyword.verifyImagePresent(VerifyImagePresentKeyword.groovy:94)

---

<div class="post-metadata">

**Author:** ![Dan\_Bown](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dan_bown/32/20464_2.png) [@Dan\_Bown](https://forum.katalon.com/u/Dan_Bown)\
**Post date:** [April 28, 2023, 9:41am UTC](https://forum.katalon.com/t/how-i-can-verify-image-in-webui-using-groovy/87692/2 "2023-04-28T09:41:31Z")

</div>

Hi, welcome to the forum.  
Can you have a read of this for ideas on what to include to explain your problem?

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [April 28, 2023, 9:45am UTC](https://forum.katalon.com/t/how-i-can-verify-image-in-webui-using-groovy/87692/3 "2023-04-28T09:45:47Z")

</div>

> [@shore](#):
>
> verifyImagePresent(

I would warn you that `WebUI.verifyImagePresent()` keyword wouldn’t work as you possibly expect it to. See the following post of mine:

[http://forum.katalon.com/t/webui-verifyimagepresent-keyword-fails-when-image-on-html-is-resized/68690](http://forum.katalon.com/t/webui-verifyimagepresent-keyword-fails-when-image-on-html-is-resized/68690)

I would recommend you not to use this keyword.
