Forum Discussion
Sure, it has a different full name.. it's a different object. While the descendant tree is the same, it's still a different object in the middle there. If I was using NameMapping, I'd map the two different objects using the unique criteria. The "Ambiguous recognition" warning is exactly that... TestComplete has found more than one object that matches the indicated parameters and so it is warning you that it won't be able to guarentee it's found the right object. And because it is giving that warning means that both objects (NetworkControl and AutomationBindingsControl) exist in memory at the same time... they need to be identified seperately.
If you don't want to use the NameMapping feature, you can achieve what you're looking for using the FindChild method. Please look into that method as I believe it will help you a lot better than trying to manipulate the full names.
Thank you all,
Robert can you please explain how can i use FindChild in this case? as this homebutton doesn't have unique property how can i look for a child without unique property?
Thx
- tristaanogre7 years agoEsteemed Contributor
It has a unique property... NetworkControl is unique to the HomeButton that takes you to NetworkControl. AutomationBindingControl is unique to that home button... as mentioned, you have two different objects that need to be identified differently.
If you want some help, please post the ObjectSpy properties of the object in question.
- OV7 years agoFrequent Contributor
Yes i would love to get help please.
How to i post the ObjectSpy properties of the object?
thx
- tristaanogre7 years agoEsteemed Contributor
Take a screenshot of the properties of the object in question and post it as an attachment to a message here.
Related Content
- 3 years agoenriquebravo
- 12 years agoTESTUS
- 5 years agohrothrock