TestProject Forum
Powered by leading experts in the test automation community

[Image Comparison Addon] Getting error about images size

Hi TestProject team,

I’m trying to compare two images using the Image Comparison Addon, but I always get an error that the images must be at the same size. How can I make the images the same size?

Hi Igor!

Thanks for reaching out :slight_smile:
The Image Comparison Addon cannot compare two images with different diemensions since they will surely be different.

The Idea behind this addon is to compare between the element’s initial state and its final state (after you performed some actions on it). The best way to get the element’s image, is to use the other action from the same addon called: “Take element screenshot”. You can take a screenshot of the element in its initial and final state and compare them. This will ensure that both images will have the same diemensions.

Kind regards,
Amit