Both of you see something in the hierarchy that shows you that the objects have a different ancestry--is this what your seeing :
Sys.Process("advantage-ui").WPFObject("HwndSource: mainWindow").WPFObject("mainWindow").WPFObject("layoutRoot").WPFObject("mainDataViewPort").WPFObject("Grid", "", 1).WPFObject("Grid", "", 1).WPFObject("TabControl", "", 1).WPFObject("ContentPresenter", "", 1).WPFObject("AdvView", "", 1).WPFObject("ExtendedScrollViewer", "", 1).WPFObject("AdornerDecorator", "", 1).WPFObject("Grid", "", 1).WPFObject("cENTRY_FRAME").WPFObject("Grid", "", 1).WPFObject("c31_SEARCH_LIST_FRAME").WPFObject("Grid", "", 1).WPFObject("AdvFrame", "", 1).WPFObject("Grid", "", 1).WPFObject("c33_SEARCH_RESULTS_FRAME").WPFObject("Grid", "", 1).WPFObject("AdvFrame", "", 2).WPFObject("Grid", "", 1).WPFObject("AdvFrame", "", 1).WPFObject("Grid", "", 1).WPFObject("c66_BTN_I").WPFObject("StackPanel", "", 1).WPFObject("Label", "_Inquire", 1).WPFObject("AccessText", "_Inquire", 1)
Sys.Process("advantage-ui").WPFObject("HwndSource: mainWindow").WPFObject("mainWindow").WPFObject("layoutRoot").WPFObject("mainDataViewPort").WPFObject("Grid", "", 1).WPFObject("Grid", "", 1).WPFObject("TabControl", "", 1).WPFObject("ContentPresenter", "", 1).WPFObject("AdvView", "", 1).WPFObject("ExtendedScrollViewer", "", 1).WPFObject("AdornerDecorator", "", 1).WPFObject("Grid", "", 1).WPFObject("cENTRY_FRAME").WPFObject("Grid", "", 1).WPFObject("AdvFrame", "", 2).WPFObject("Grid", "", 1).WPFObject("c73_SEARCH_RESULTS_FRAME").WPFObject("Grid", "", 1).WPFObject("AdvFrame", "", 2).WPFObject("Grid", "", 1).WPFObject("AdvFrame", "", 1).WPFObject("Grid", "", 1).WPFObject("c87_BTN_I").WPFObject("StackPanel", "", 1).WPFObject("Label", "_Inquire", 1).WPFObject("AccessText", "_Inquire", 1)
I clearly see that your correct, it is a different path when reviewing the path above--I see both items in the object browser as a different object. However, both are mapped (alias) to the same object (MappedName), maybe its my template i'm using or something else. I attached an image of the different object mappings.
When I double click on the item to get the properties, here are the alias's:
#1 InquireLabel
Aliases.advantage_ui.HwndSource_mainWindow.mainWindow.mainDataViewPort.Grid.Grid.TabControl.ExtendedScrollViewer.LabelInquire
#2 InquireLabel
Aliases.advantage_ui.HwndSource_mainWindow.mainWindow.mainDataViewPort.Grid.Grid.TabControl.ExtendedScrollViewer.LabelInquire
I attached an image of the above mapping: mappedObjectIdenticalObjects.png
When I uncheck the extended find (it was checked), i Testcomplete cannot find it, it comes back as "Ambiguous recognition of the tested object....The "LabelInquire" does not exist"-which tells me there are more than one of the same item and doesn't know which to select.
I am using a template in order to map the objects as well for this desktop/wpf application using customer controls.
I appreciate both responses, and my response can be safely ignored if i'm not understanding. I am not sure how i'd change or update the mappings in the ancestry of the objects to have a different parent? Would adding the property of "FullName" to the template do this, or would changing the alias name of the 'MappedName' in the object browser do that, or something else?
This has been a good learning experience--and thanks ahead of time!
Erik