Forum Discussion

azakharov's avatar
azakharov
Contributor
12 years ago

Find vs FindChild, what is the difference?

Hi,



What are the diffrences between Find and FindChild methods?



I've noticed that Find works a little faster for some reason especially if I use it with some parrent object instead of the whole web page (in other words somewebtable.Find instead of page.Find).



Thank you.

3 Replies

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    Find may return the parent object in ParentObj.Find() whereas FindChild will not.
  • Yes Andre Find will return the childobjects as well as the object itself.FindChild will return only the child objects.

    As for Find taking lesser time to serach in a table than its because smaller is the area to search,faster is the search.