Forum Discussion
Hi Chrispro,
To speed up the search process, you can try calling the Find method from a closer parent object (the one which is located as much closer to the target object as possible). Right now, you are searching for an object from the application’s process. If your object is located deep in the structure tree, TestComplete can search for it for a long time as it will iterate thought all objects in the tree.
- Colin_McCrae9 years agoCommunity Hero
You have your search depth set to 20000 deep!!!!!
I don't think I have a "find" of any type that goes more than 10 deep, most are only 2 or 3. And none that search directly off the top level process. A series of 2 or 3 short searches will be more efficient than one HUGE search for small object deep in the object tree.
So maybe:
Process.Find(Page)
>Page.Find(Panel)
>>Panel.Find(ObjectYouWant)
Even that cuts out a lot of wasted time searching ...
Related Content
- 3 months agoStoplight
- 10 months agosandysang
- 11 months agochrisaltair
- 7 months agonado
Recent Discussions
- 3 days agoMW_Didata