Forum Discussion
irina_lukina
13 years agoSuper Contributor
Hi Aamer,
As I have mentioned in my previous post, most likely, the button changes the color a little bit after you click on it. That's why, the comparison passes in the first and third cases you mentioned and fails in the second case.
Why this is happening
I'm afraid, I don't know other solutions.
what are the possible solution to it other than 1 & 2 points of your reply.
I recommend that you use the Region.Check method. It allows comparing the item of the Regions collection with another picture (for example, a picture captured during the test run). The code below demonstrates how you can use this method:
can you please tell me how to use color tolerence in script?
var BaselineImage = Regions.Item_Name;
var RuntimeImage = <Code_You_Use_For_Capturing_Image>;
var ColorTolerance = 15; // This parameter takes values from 0 to 255
var MaskObj = <Mask_Object_If_Any>;
BaselineImage.Check(RuntimeImage, False, False, 0, ColorTolerance, MaskObj)
Does this help?
Related Content
- 12 months agoclaudio
- 4 years agoasavoia
- 9 months agoLuukdb
- 9 years agomrezahoseini
Recent Discussions
- 12 hours agodhundley