WPFControlAutomationId Property (WPF Application Objects)

Applies to TestComplete 15.69, last modified on November 13, 2024

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