Forum Discussion
ArtemS
Alumni
14 years agoHello gentlemen,
>>The issue is that sometimes the picture doesn't have the red border around it. Is it because the red border flashes? Therefore if it happens to be flashed off when the picture happens, there's no border?
Yes, since Sys.HighlightObject and Log.Picture are called asynchronously, TestComplete is not guaranteed to capture an image of the on-screen object exactly when it is surrounded with the red border.
Try to experiment with the HighlightCount parameter that determines the number of flashing times as Lucian suggested. This would be the fourth parameter in the Runner.CallObjectMethodAsync(Sys, "HighlightObject", w, 5) routine call.
Regards.