verifyImagePresent isn't working for me

Hi,

i’m writing a test to verify full screen photo view.
the use case is this:
1. user clicks on a photo thumbnail.
2. full screen view of the photo appears
*the photo does not appear in its full resolution.

my test:
created a test object and added the image file to it.
clicked on the photo.
then a added this line:
WebUI.verifyImagePresent(findTestObject(‘Contnet/img_current-image’))

the test keeps failing although from what i understnad it shouldn’t.

am i doing something wrong?
how does verifyImagePresent compare images?

Thanks,
Udi.

Hi, Udi
What error message are you getting? How can you tell the test is failing?

Mate Mrse said:

Hi, Udi
What error message are you getting? How can you tell the test is failing?

Hi Mate, i’m getting a simple image not present fail message.
Image: ‘C:\Users\user\Katalon Studio\Proj\…/Data files/Photos/Amazon.png’ is NOT present

Help, anyone?

Hey,
can you please share some HTML code, your script code, some screenshots, or all of the above?
It is practically impossible to guess what happened unless someone had exactly the same scenario as you did. :slight_smile:

As @Mate Mrse suggested… I’m only guessing at this point, but my experience lately has been that I’ve screwed up something in the path for findTestObject(…)

  1. WebUI.verifyImagePresent(findTestObject(‘Contnet/img_current-image’)) <-- Is Contnet spelled wrong here? See if your log has a null reference exception

2. The mixed / and \ for the images path seems funky.