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?
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.
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(…)
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.