Skip to content

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.

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.

ParameterEditorDescription
selectorselectorThe input field to fill out.
valueexpressionThe text to write. Supports expressions (e.g. = cliente.nombre).
ParameterEditorDescription
pagesessionThe page session. Omit it inside a body; outside, pass = page.
timeoutnumberMaximum ms to wait for the element. By default 30000.
Page Fill selector = (#usuario) value = = credential("portal")["user"]
Page Fill selector = (#clave) value = = credential("portal")["password"]
Page Fill selector = (#buscar) value = "factura 2026"