Set Value Activity
The Set Value activity writes a value directly to a specific UI element within a native Windows desktop application, such as a text box or combobox.
| 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 |
| Value | The data to write to the target element. | Required |
| Clear | If enabled, clears the target element's existing content before writing new data. | Optional |
Action Types & Examples
Value Assignment
- Format: string
- Example Result: "Robusta automation"
Implementation Examples
Field Setup - Application instance: ${appInstance} - Element: the target control identified by the UI Automation Inspector - Value: Robusta automation - Clear: true
Technical Notes
LabelandLabel match typeprovide an alternative toElementfor identifying the target, useful when a stable selector is not available. Provide eitherElementorLabel, not both.