How to mask application icon/images using "DocTest.VisualTest" library while comparing images

I am comparing my application images by using ‘compare Image’ keyword, am able to mask text messages however am unable to masks application icons. can you help me how to mask application icon/images need to ignore while comparing.

Hi, are the application icons always at the same position ? Then, as a workaround, you could use a coordinate mask.

The masks can also be added as a robot framework dictionary instead of an external jsonfile.

If you really want to exclude specific icons/images from the comparison, maybe you can describe me how you want to do it. Then I’ll see if I can implement it. Do you want to store all images for exclusion in a folder and pass that folder as an argument? Or do you have something different in mind?

1 Like