Win Get Text
Win Get Text
Section titled “Win Get Text”Type: win-get-text · Package: Desktop Activities v1.0.0 · Output: string
Reads the text or value of an element of a desktop application: a label, a field, a cell. It is the key activity to extract data from an app: a total, a state, a result.
How it works
Section titled “How it works”Locates the element by its selector and returns its text (or its value, in the case of fields). Save the result in an output variable.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The element whose text to read. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Win Attach session. If omitted, the selector must include the window. |
timeout | number | Maximum ms to wait for the element. By default 30000. |
Output
Section titled “Output”Returns a string with the text or value of the element.
Example
Section titled “Example”Win Get Text selector = (etiqueta "Saldo actual") → output: saldoTextoSet Variable name = saldo value = = parseDouble(replace(saldoTexto, "$", ""))Related activities
Section titled “Related activities”- Win Get Attribute — read a specific property (enabled, checked…).
- Win Extract Table — read an entire table at once.