Forum Discussion
Hi,
// obj.FindChild(....,1000,True) //
I could see the depth=1000, is that much depth is required to do FindChild and locate the child object?
I mean to say, the FindChild operation by itself is heavy and takes up time for execution. Hence calculated(to approximate extend) depth value has to be given for that function.
One option is instead of taking the general parent object(Firefox browser page) you can go for the specific parent(nearest parent) under which your desired object/control is present as child object. This will narrow down the searching. If difficulty is there in doing so as sometime the particular part or control may not be spied, in that case you can go for the overall parent object do find child on that itself. Else you can go for "Extended find child method" also.
Also, before FindChild, go for a implicit delay methods like wait methods to wait for browser page to load and all controls/objects to get appeared on UI. This will allow time for object browser in TestComplete to load all the parent- child objects associated with the process. Then go for FindChild that might help in locating the particular file without fail.
Hope this helps!
Cheers
Related Content
- 12 years ago
- 2 years ago
- 12 years ago
Recent Discussions
- 4 days ago
- 4 days ago