Forum Discussion
Ok, The thing is that the 2nd object is a bit problematic because TC cannot see it's properties, etc. because it is not always displaying, in order for it to display we'll need to click the + sign then a menu item will display and this is the other object so the 2nd document is for the 2nd object. hope it can help or another option is that there could be another ItemsControl objects that i'm missing.
Pls see attached
Thx,
Ofer
In order to help mapping with both objects, I need similar documentation of the object spy of the second object. That's the only way to determine how to distinguish between the two.
- OV9 years agoFrequent Contributor
How can I get the other object if TC can't retrieve it's properties? in order to get its properties i'm using Point and Fix , is there any way to get these properties?
- tristaanogre9 years agoEsteemed Contributor
Question:
What happens when you click record and record just a quick little bit of performing the task you want to perform? The reason I ask is that the properties you've given show that what you have as Object A actually has a "PopupMenu" as a property... which means that the interaction is with the PopupMenu... And recording should show how Testcomplete works with that.You might want to look into http://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/dev-express/winforms/xtra-popup-menu/index.html
- OV9 years agoFrequent Contributor
It is a popup menu item and that's why i can't retrieve its properties.
Here's a recording of clicking the + sign to show the popup menu and selecting one of the items.
function Test1()
{
var quickDesign_ConfigurationManager;
quickDesign_ConfigurationManager = Aliases.QuickDesign_ConfigurationManager;
quickDesign_ConfigurationManager.HwndSource_This2.This.AutomationPatternsControl.BtnAddItem.ClickButton(cbChecked);
quickDesign_ConfigurationManager.HwndSource_PopupRoot.PopupRoot.Decorator.NonLogicalAdornerDecorator.Border.StackPanel.ItemsControl.SecondMenuItem.ClickButton();
}Another thing i would like to mention is that i saw that i have another ItemsControl Alias in my Aliases mapping so, to be honest i'm not sure if the clash is between theses to or the other. see attached file where you can see the three objects. i've changed names for two of them thought it'll solve the problem but you can still see the ItemsControl in the name.
Let me know if that helps or if you need me to do anything else.
Thanks