Win Type
Win Type
Section titled “Win Type”Type: win-type · Package: Desktop Activities v1.0.0
Type text into an input field in a desktop application. It is the way to fill out forms: username, password, search values, capture data.
How it works
Section titled “How it works”Locate the field by its selector and type the text. By default clears the field before (clear = true) and uses the value method (maps the text by the UIA Value pattern: fast and reliable). For fields that react to each key, use method = simulate. See interaction methods.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The field where to write. |
text | expression | The text to write. Supports expressions. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Win Attach session. If omitted, the selector must include the window. |
clear | boolean | Clear the field before writing. By default true. |
method | list | Method: value (def., UIA pattern, fast) · simulate (simulates keystrokes). |
timeout | number | Maximum ms to wait for the element. By default 30000. |
Example
Section titled “Example”Win Type selector = (campo "Usuario") text = = credential("erp")["user"]Win Type selector = (campo "Clave") text = = credential("erp")["password"]Related activities
Section titled “Related activities”- Win Set Value — assign a direct value (Value method only).
- Win Key Press — enviar teclas especiales (Tab, Enter…).
- Win Get Text — read the value of a field.