Set Attribute Activity
The Set Attribute activity modifies the value of a specific attribute on a UI element within a native Windows desktop application.
| Field | Description | Requirement |
|---|---|---|
| Application instance | The reference name of the application instance previously opened or attached. | Required |
| Element | The JSON-based selector identifying the target element. | Required |
| Label | An alternative to Element that identifies the target by label instead of a selector. | Optional |
| Label match type | Defines how Label is compared against candidate elements (e.g., Equals, Contains). | Optional |
| Attribute name | The name of the attribute to modify. | Required |
| Value | The new value to assign to the specified attribute. | Required |
Action Types & Examples
Attribute Assignment
- Format: string
- Example Result: "false"
Implementation Examples
Field Setup - Application instance: ${appInstance} - Element: the target control identified by the UI Automation Inspector - Attribute name: Enabled - Value: false
Technical Notes
LabelandLabel match typeprovide an alternative toElementfor identifying the target, useful when a stable selector is not available. Provide eitherElementorLabel, not both.