Forum Discussion

codewithme's avatar
codewithme
New Contributor
12 years ago

Method to get the next sibling of a object.

Is there any method in Test Complete to find the next object or sibling of a object.I know there is FindChild method, but how to get to the next object or its next sibling .Please help? 



Basically I have a scenario , where there is a label say 'Currency' and the next sibling/object  in the object browser  is a combo box whose properties and values match exactly to another object, but only way to differentiate is using the label name.

3 Replies

  • james_attree's avatar
    james_attree
    Occasional Contributor
    If you can differentiate between them, why can't you map them via that option?
  • codewithme's avatar
    codewithme
    New Contributor
    Hi , I can differentiate the parent objects ,not the child ones.
  • james_attree's avatar
    james_attree
    Occasional Contributor
    Have you looked at the advanced properties of the child objects?



    For example the default options to map them (ID etc) might be the same but they may have properties that set them apart form each other.