I create test for flash games, I have a problem after clicking on an object (container), I need to wait until image color will be the same again (it switch to grey for 4 to 20 secs. more then 20 another problem happened

so I wrote this:
Code: Select all
Imaging.FindOptions MyFindOptions = new Imaging.FindOptions (0.97); // higher success
Validate.Options MyValidOption = new Validate.Options(false,ReportLevel.None); // remove exception + I thought I remove report :)
string IsImageFound = "false";
int i=0;
while (IsImageFound !="True" && i<5)
{
IsImageFound = Validate.CompareImage(repo.WebDocumentIE.ContainerSpinButtonInfo, ContainerSpinButton_ScreenshotBtn,MyFindOptions,"",MyValidOption).ToString();
Delay.Milliseconds(4000);
i++;
}
Can someone please help me to remove this images?

I am using Ranorex studio 5.3.2, C#.