Forum Discussion
I've seen the same issue a lot on my system. It seems that, for some reason, TestComplete occasionally loses the ability to see into open applications for a short time. But it is usually able to get it back, if you do a couple of things. I've been able to solve it by using a combination of things. First, you can use the General Open Applications property, specifically the Method Invoke Timeout property.
I've also had success with the the WaitAliasChild method, and the Exists property, along with a RefreshMappingInfo call. It ends up looking like this:
var w = Aliases.mySoftware.myForm.WaitAliasChild("myControl", 10000);
if (!w.Exists) mySoftware.RefreshMappingInfo;
Good luck!
Thank you so much! The RefreshMappingInfo call seems to have done the trick.