I tried a couple approaches that all fail:
I.see({ css: “img.et-waypoint et_pb_animation_top et-animated”});
I.seeElement({ css: “img.et-waypoint et_pb_animation_top et-animated”});
Hi, have you seen this visual testing guide of codedeceptjs? Resemble.js and CodeceptJS’s WebDriver helper may be useful for your scenario which is explained in the guide,
I did see that, and was afraid that was the only way to verify an image is present. It just seems like overkill because I am not testing what it looks like or even it’s dimensions - just that it is present. But if this is the commonly accepted method then I will use it.
I agree if you just want to assert that image is present then using visual testing is an overkill. I guess what you want is something like I.seeImage(). I don’t know if there is a way for that
You could try grabbing an attribute of the element holding the picture and then with some regex trim so that you get only the image name and assert that it matches the image name you are expecting?