Mapping unknown controls
Every control belonging to a given platform has a native control class within that platform. Just as TestArchitect maps controls and windows to logical names (TA names) it also maps control class names from each AUT platform to its own set of class names, called TA classes. In some cases, the Interface Viewer encounters a control whose class it does not know about. (These are indicated by red question marks in their nodes in the Viewer’s UI explorer tree.) When that happens, if you need to interface with the control, or with other controls of that class, you must map the unknown native class to a suitable TA class.
- Windows Presentation Foundation (WPF)
- Windows Forms (WinForms)
If you attempt to capture a control whose class is unknown (), TestArchitect displays an alert requiring that you map that control’s class to either
- a known class (an existing built-in or user-defined TA class) or
- a new user-defined TA class.
Mapping unknown controls to a known class
A step-by-step guide to mapping unknown controls to a known class (built-in TA class, or user-defined TA class).
Mapping unknown controls to a new class
The last topic discussed mapping unknown control classes of an AUT to a known TA class. Now we’ll explore how to map an unknown control class to a completely new class (that is, a newly created user-defined TA class).