Type Text
Type Text
Section titled “Type Text”Type: page-type · Package: Browser v1.0.0
Write text character by character, simulating real keystrokes. It is slower than Fill Field, but generates an event per key — necessary when the page reacts to typing: autocompletes that show suggestions, masked fields, search engines that filter live.
How it works
Section titled “How it works”Focuses on the field indicated by the selector and types the text letter by letter, with an optional pause (delay) between keys. Unlike Fill Field, it does not delete the content first: it writes from where the cursor is.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The field where to type. |
text | expression | The text to type. Supports expressions. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
page | session | The page session. Omit it inside a body; outside, pass = page. |
delay | number | Pause between keys in ms (e.g. 50). Higher = more “human” and reliable on sensitive pages. |
timeout | number | Maximum ms to wait for the element. By default 30000. |
Example
Section titled “Example”Write in a search engine with autocomplete and then choose the suggestion:
Page Type selector = (#busquedaCiudad) text = "Bogotá" delay = 80Page Wait For selector = (.sugerencia) state = visiblePage Click selector = (.sugerencia)Related activities
Section titled “Related activities”- Fill Field — write quickly, in one go.
- Key Press — enviar teclas especiales (Enter, Tab, atajos).