Regions.Compare with Masks
- 6 years ago
Well,first of all, I don't like having "Stop on error" set to true... I like to have more granular control over when my automation stops. So, if turn that off, then Regions.Check would work for you.
You could go the route of Picture.Compare (https://support.smartbear.com/testcomplete/docs/reference/program-objects/picture/compare.html?q=Picture.compare)
It's a bit different than Region compare... you wouldn't have a stored region in the system, you'd be using an external picture file loaded in. I use this freqently and does pretty well.
- 6 years ago
Hi, ezzmonem
Is it an option to use the Picture.Compare method?
Picture.Compare allows a mask to be used
https://support.smartbear.com/testcomplete/docs/reference/program-objects/picture/compare.html
In my scripts I use a combination of the picture.compare and region.compare method
===========================
if (!pic_1.Compare(pic_2, ............., maskImg))
{Regions.Compare(pic_1, pic_2)
}===========================
Regards,
Daniel