Fill Field
Fill Field
Section titled “Fill Field”Type: page-fill · Package: Browser v1.0.0
Clears an input field (input or textarea) and writes the indicated value in one go. It is the fast and recommended way to fill out forms: it assigns the value directly, without simulating keystrokes.
How it works
Section titled “How it works”Locate the field by its selector, delete what it had and place the new value. It does not generate individual keyboard events (it is almost instantaneous). If a page needs to react to every key (autocomplete, type-validating masks), use Type Text instead.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The input field to fill out. |
value | expression | The text to write. Supports expressions (e.g. = cliente.nombre). |
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. |
Example
Section titled “Example”Page Fill selector = (#usuario) value = = credential("portal")["user"]Page Fill selector = (#clave) value = = credential("portal")["password"]Page Fill selector = (#buscar) value = "factura 2026"Related activities
Section titled “Related activities”- Type Text — escribir tecla por tecla.
- Get Value — read the current value of a field.
- Select Option — choose from a drop-down list.