By default the Open Agent will use the automationId attribute as the primary identifier for a WPF object as long as the object provides this attribute for recognition. However the Open Agent will always use the caption attribute to identify a “WPF Windows” by default; this behaviour is as designed. The reason for this from a Silk Test technical perspective is that the WPF window is owned by the Win32 techDomain and Win32 uses the caption attribute as default. This is why the caption attribute is used for a WPF Window and for every other control/class the automationDd is used to identify the object However you can manually changed the X-Path locator to use the automationid for object recognition of the WPF Window as shown below. Please note that, it is not possible to force the automatic recording of the automationid in a WPF Window
↧