Skip to content

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.

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.

ParameterEditorDescription
selectorselectorThe element whose text to read.
ParameterEditorDescription
sessionsessionWin Attach session. If omitted, the selector must include the window.
timeoutnumberMaximum ms to wait for the element. By default 30000.

Returns a string with the text or value of the element.

Win Get Text selector = (etiqueta "Saldo actual") → output: saldoTexto
Set Variable name = saldo value = = parseDouble(replace(saldoTexto, "$", ""))