The UI Automation Connector

The UI Automation Protocol

UI Automation is a standard protocol developed by Microsoft. It enables applications developed with the following technologies to be controlled:

  • Microsoft technologies (such as Win32, WinForm, WPF, or Silverlight)

  • Any technologies that support MSAA (such as QT)

The control capabilities with UI Automation are constrained by:

  • The capabilities provided by the UI Automation protocol (you cannot create a component in the controlled application)

  • How the UI Automation protocol is implemented in the controlled applications

Depending on the application to be controlled, the UI Automation protocol can give access to data elements displayed in complex IHM components, such as:

  • Tree items or list items in TreeView or ListBox components in QT applications (requires an accessibility plugin)

  • PDF document content in Acrobat Reader

Performance Management

Unlike other Desktop Agent connectors (such as Windows or Web), the UI Automation connector runs “out of process”. In other words, it runs in the Desktop Agent process, not in the process of the controlled application. All control operations are therefore carried out by means of inter-process communication, which is slower than in-process communication. Most exchanges involve searching through the application tree during recognition.

You can significantly improve recognition performance by limiting the size of the DOM tree that is searched:
  • Exclude parts of the DOM tree from being searched

  • Set the maximum search depth

  • Limit the search space

Defining Entities for a Desktop Application

For details of the entities to define, see Entities for a Desktop Application.

Application-Based Events

For details, see Application-Based Events.

Page-Based Events

For details, see Page-Based Events.