Skip to content

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.

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.

ParameterEditorDescription
selectorselectorThe field where to write.
textexpressionThe text to write. Supports expressions.
ParameterEditorDescription
sessionsessionWin Attach session. If omitted, the selector must include the window.
clearbooleanClear the field before writing. By default true.
methodlistMethod: value (def., UIA pattern, fast) · simulate (simulates keystrokes).
timeoutnumberMaximum ms to wait for the element. By default 30000.
Win Type selector = (campo "Usuario") text = = credential("erp")["user"]
Win Type selector = (campo "Clave") text = = credential("erp")["password"]