TestComplete v14. FindChild (dynamic) version of an XPath doesn't work in TC v14
Hi there,
We are using Test Complete v11 for our automated test cases and we are currently testing Test Complete v14
we came across some XPath we have for mapping application objects in our product are working in TC v11 and they don't work in TC v14
we use in TC v11.31.2420.7 the FindChild (dynamic) version of an XPath, this doesn't work in TC v14
In TC v14 we can only get the test to work using the absolute XPath from Object Spy
For e.g in Test Complete v11 this is the XPath that work
Sys.Process("ImageScope").FindChild("Name", "WPFObject(\"MacrosListView\")", 1000).Child(1)
This XPath doesn't work in Test Complete v14
The Xpath that works in Test Complete v14 is the absolute XPath below
Aliases.ImageScope.HwndSource_PopupRoot.PopupRoot.Decorator.NonLogicalAdornerDecorator.MenuItem.RootGrid.MacrosListView.WPFObject("ListViewItem", "", 1)
I have also tested these XPaths I have created from the absolute XPath and get with the Spy tool and they don't work in v14
Sys.Process("ImageScope").FindChild("Name", "WPFObject(\"ListViewItem\")", 1000)
Sys.Process("ImageScope").FindChild("Name", "WPFObject(\"ListViewItem\")", 1000).Child(1)
Is there anything changed or new in v14 that affect the objects application mapping using the FindChild (dynamic) version of an XPath?
When we use the absolute XPath the test passes with warning message below
<html><style>body {font-family : Segoe UI, Tahoma, Arial, Helvetica, sans-serif; font-size : 10pt; font-weight : normal; padding : 14px 8px 8px 14px; margin : 0 0 0 0;} p {margin : 4px 0 4px 0; padding : 0 0 0 0;} h4 {font-size: 10pt; font-weight : bold; margin : 12px 0 0 16px; padding : 0 0 0 0;} table {margin-left : 16px; border-top: 1px solid grey;} td {font-size : 10pt; font-weight : normal; padding-left : 8px;} </style><body><p></p><p>There are several objects that match the identification attributes of the "<a href="namemapping://{9E92F967-7A95-413A-9BF8-2B4DDAFF72AE}.{F4C414FE-CC07-44D6-8F75-DD05C964FEE5}">HwndSource_PopupRoot</a>" mapped object. This may result in slow search for objects.</p><p style="margin-top: 12px;">To solve the problem, you may need to modify the mapping settings of the "<a href="namemapping://{9E92F967-7A95-413A-9BF8-2B4DDAFF72AE}.{F4C414FE-CC07-44D6-8F75-DD05C964FEE5}">HwndSource_PopupRoot</a>" object or one of its parent objects.</p><p style="margin-top: 12px;"><a href="namemappinghideamb://{9E92F967-7A95-413A-9BF8-2B4DDAFF72AE}.{F4C414FE-CC07-44D6-8F75-DD05C964FEE5}">Disable this warning for the "HwndSource_PopupRoot" mapped object.</a></p><p style="margin-top: 12px;"><a href="aqa-help://2204">See Help for more information</a></p></body></html>
Thanks