Get Text Activity
The Get Text activity retrieves the text content of a specific UI element within a native Windows desktop application and stores it in a variable for use in subsequent workflow steps.
| 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 |
| Result variable name | The name of the variable where the retrieved text will be stored. | Required |
Action Types & Examples
Text Retrieval
- Format: string
- Example Result: "Sample content"
Implementation Examples
Field Setup - Application instance: ${appInstance} - Element: the target control identified by the UI Automation Inspector - Result variable name: getTextResult
Technical Notes
LabelandLabel match typeprovide an alternative toElementfor identifying the target, useful when a stable selector is not available. Provide eitherElementorLabel, not both.