Skip to content

Get Text

Type: page-get-text  ·  Package: Browser v1.0.0  ·  Output: string

Reads the visible text of an element (its innerText) and returns it as a string. It is the key activity for extracting data from a page: a total, a name, a status message, a search result.

Locates the element by its selector, waits for it to appear (up to timeout) and returns its visible text. Save the result in an output variable for later use.

ParameterEditorDescription
selectorselectorThe element whose text you want to read.
ParameterEditorDescription
pagesessionThe page session. Omit it inside a body; outside, pass = page.
timeoutnumberMaximum ms to wait for the element. By default 30000.

Returns a string with the text visible. Save it in a variable (Output field).

Page Get Text selector = (.saldo-actual) → output: saldoTexto
Set Variable name = saldo value = = parseDouble(replace(replace(saldoTexto, "$", ""), ".", ""))
Log message = = "Saldo: " + saldo