Forum Discussion

Nimeshika's avatar
Nimeshika
Contributor
11 years ago

How to differentiate objects with same address without using name mapping?

I have 3 frames of Class "System.Windows.Forms.GroupBox" in same window.

All three frames have same objects within them as well as same adresses for each.


I am unable to differentiate the objects  since they have same adresses and hence unable to perform actions on  objects of particular frame


It performs on any random frame.


I cant use id  since its changing.


It has same index too.


How can I perform action on them without using name mapping?


 

  • Hi Nimeshika,

     


    Do these frames contain the same content? If you can distinguish the frames by the child objects, you can use TestComplete's Required Children feature. Please refer to the "Specifying Required Child Objects" article for the detailed information.



    Without Name Mapping, you can use the Find or FindAll method.

  • Hi Tanya,

            Yes, these frames have exactly same objects as children. I cannot ditinguish them by any means.
  • Manfred_F's avatar
    Manfred_F
    Regular Contributor
    Maybe, You can use the Position properties of the controls to distinguish them?



    Regards,

    Manfred