WPF Connector

(Available from version 7.0 onwards.)

Automation Studio is designed to provide powerful and reliable screen element capturing from applications developed with Windows Presentation Foundation (WPF) technologies.

Connector Features

The built-in WPF Connector provides the following features:

  • Capture of screen elements from WPF applications

  • Support for 32-bit and 64-bit architecture

  • Multi instance support

Configure the Connector

No configuration is required for the WPF Connector. This connector is enabled by default.

Capture a Screen Element

The procedure for capturing a screen element from a WPF application is the same as for all screen elements. See Capture a Screen Element.

The following guidelines are specific to capturing elements from a WPF application:

  • Any element in a WPF application can be captured.

Edit a Screen Element

The Edit Screen Element window opens after capturing a screen element. This screen allows you to customize how the screen element is treated and identified. See Edit a Screen Element.

Information specific to WPF application screen elements is provided below.

Element Hierarchy

The element hierarchy for a captured element from a WPF application is as follows:

  • Root branch with the name of the WPF application

    • WPF window with the name of the window on which the screen element was captured

      • WPF screen element

See View the Element Hierarchy.

Screen Element Types Supported

The screen element type values available differ between levels in the hierarchy.

Type

Screen Element Types

Screen Element

  • WPF General

  • WPF Button

  • WPF Text

  • WPF RichTextBox

  • WPF RadioButton

  • WPF Label

  • WPF Menu

  • WPF PasswordBox

  • WPF TreeView

  • WPF ListView

  • WPF TreeListView

  • WPF DataGrid

  • WPF TabControl

  • WPF ToolBar

  • WPF CheckBox

  • WPF ComboBox

  • WPF ListBox

  • WPF Hyperlink

WPF Window

  • WPF Window

WPF Process

  • Process

Recognition Properties Supported

The recognition properties available differ between levels in the hierarchy.

Main Relation Type

The element's main relation type is displayed in the Edit Screen Element window, but cannot be changed.

This section is not displayed for the WPF Process.

See Identify an Element's Main Relation Type.

Multi Instance Support

The WPF Connector provides support for multiple instances of a WPF application.

You can specify which instance of the application to relate to if multiple instance of the same application are open.

Multi instance support differs between levels in the hierarchy.

Type

Multi Instance Support

WPF Screen Element

Optional, inactive by default.

WPF Window Optional, inactive by default.

WPF Process

Active by default, cannot be deactivated.

See Set Multi Instance Behavior

Screen Element Assets

Each screen elements has its own properties, functions, and events. These are visible in the Assets Panel.

For information on screen element assets, see here.

Monitor Screen Elements in Debug Mode

When in debug mode, you can view and modify the values of a screen element's properties.

For example, the text shown in the Create User button can be viewed and modified during debug.

See Monitor Screen Elements in Execution Mode.