WPFControlAutomationId Property (WPF Application Objects)

Applies to TestComplete 14.72, last modified on December 24, 2020

Description

Returns the value of the WPF control’s AutomationIdProperty property as it is set in the tested application’s source code.

Declaration

WPFAppObj.WPFControlAutomationId

Read-Only Property String
WPFAppObj A WPF application object

Applies To

All WPF application objects, except for substrate windows.

Property Value

A string value that specifies the AutomationIdProperty value set for the WPFAppObj object in the tested application’s sources.

Remarks

  • If developers did not set the AutomationIdProperty value in source code, the property returns an empty string.

  • The property is available only if the application under test is a WPF application and the WPF Control Support plugin is installed and enabled in File | Install Extensions.

See Also

Testing WPF Applications

Highlight search results