Get Value
Get Value
Section titled “Get Value”Type: page-get-value · Package: Browser v1.0.0 · Output: string
Reads the value of a form field—a <input>, <select>, or <textarea>—and returns it as text. Use it to check what’s typed in a field, read a prefilled value, or confirm what the bot just typed.
How it works
Section titled “How it works”Locates the field by its selector and returns its value property (what the field contains), which is not always the same as its visible text. Save the result in an output variable.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The input/select/textarea field 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 field value.
Example
Section titled “Example”Page Fill selector = (#cantidad) value = "10"Page Get Value selector = (#cantidad) → output: cantidadActualIf condition = = cantidadActual != "10" └─ then: Throw message = "El campo no aceptó el valor esperado"Related activities
Section titled “Related activities”- Get Text — visible text for non-field elements.
- Fill Field — write a value to the field.