Forum Discussion

nongtik's avatar
nongtik
New Contributor
12 years ago

TestComplete takes hours to search for an object and fails

TestComplete/TestExecute version: 9.31



I found this problem quite more often lately that TC/TE takes very long time (e.g. 3 - 5 hours) to find an object and fail to find it (tho the object is really there).



I tried to change the code in many ways but it still occurs.



popupParent = Sys.Process("MyBox");

Log.Message("popupParent: " + popupParent.Exists);


popupMenu   = popupParent.PagePopup(0);


//popupMenu   = popupParent.Find("ObjectType", "PagePopup", 3, true);

//popupMenu   = popupParent.FindChild("ObjectType", "PagePopup", 3, true);



popupParent always exists, but the script always gets stuck when try to look for the PagePopup object. Refreshing object tree or time out doesn't help.



If I remember correctly, this doesn't happen when I use 9.10 or 9.20 (same code). Is there anything I miss or should add to make it work?