UI Automation in UFT

Relevant for: GUI tests and components

Microsoft UI Automation is a framework that enables you to access, identify, and manipulate UI elements of any application by providing programmatic access to these user interface elements.

The UI Automation API enables this access by using the IUIAutomationElement interface to make each element into a separate object. You can then view the properties and operations of each of the objects in the application.

UFT uses the different parts of the framework to create both test objects based on your application, and the object's supported test object methods.

Use the following elements to understand the framework:

Element tree The hierarchy of elements in the application, which displays a logical division and hierarchy of all user interface elements in the application
Control Type property The appearance and functionality of the object.
Control Patterns

These patterns also contain methods specific for the patten. Control patterns are a way to categorize and expose a control's function independent of the control type or the appearance of the control.

There is no one-to-one matching of the control type property to control patterns - each control type can support multiple types of patterns and each pattern can be used by multiple control types.

For full details on the UI Automation framework, see the UI Automation section on MSDN.

Enable UI Automation support

Use the UFT UI Automation support with any Windows-based application that has implemented UI Automation provider interfaces. The support is loaded as with other add-ins, by selecting UI Automation in the Add-ins Manager when starting UFT.

Note: UFT support has been validated with Telerik UI for Windows Forms, Telerik UI for .NET WPF, and JavaFX.

When in use, UFT UI Automation support overrides other technology support. UI Automation support can be used with existing technology support, but not at the same time.

See also: