Forum Discussion
ArtemS
12 years agoSmartBear Alumni (Retired)
Hello 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.
Related Content
- 5 years agojonathon
- 9 years agotwhitehouse
Recent Discussions
- 2 days agoMW_Didata