Forum Discussion

Uzumaki's avatar
Uzumaki
Occasional Contributor
14 years ago

FindChild(ren) on web pages

Hi,



I am a bit confused to as how the findchild functions works for object on web pages. When i select object n a web page they all seem to have the value 0 in the property "ChildCount". And this an object which has hundreds of buttons, divs and labels.



What am I missing?



Edit: When using the "Find Object" functionality in keyword test it only seems to search for property values in the parent.



/Joakim

1 Reply

  • Hi Joakim,



    The FindChild method looks for an object with the specified criteria one or more levels deep in the hierarchy. The default search depth is 0, which means that only the current object's children (not grandchildren) are examined. Note that you can specify the search depth explicitly as the method's parameter, as described in the FindChild Method help topic. The Find Object operation searches only in the children of the parent object. If this is not the information you need, please clarify your request and describe the specific steps you follow (and the specific problem you face) in detail.