Get Text
Get Text
Section titled “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.
How it works
Section titled “How it works”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.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The element whose text you want to read. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
page | session | The page session. Omit it inside a body; outside, pass = page. |
timeout | number | Maximum ms to wait for the element. By default 30000. |
Output
Section titled “Output”Returns a string with the text visible. Save it in a variable (Output field).
Example
Section titled “Example”Page Get Text selector = (.saldo-actual) → output: saldoTextoSet Variable name = saldo value = = parseDouble(replace(replace(saldoTexto, "$", ""), ".", ""))Log message = = "Saldo: " + saldoRelated activities
Section titled “Related activities”- Get Value — read the value of form fields.
- Get Attribute — read an HTML attribute (href, src…).
- Extract Table — extract an entire table at once.