Win Set Value
Win Set Value
Section titled “Win Set Value”Type: win-set-value · Package: Desktop Activities v1.0.0
Assigns the value of an input field using the UIA Value pattern. It’s similar to Win Type with method = value, but more direct: it simply sets the value, without keyboard simulation options. Fast and reliable for standard text fields.
How it works
Section titled “How it works”Locates the field by its selector and assigns it value using the UIA Value pattern (replaces the current content).
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The field to assign. |
value | expression | The value to set. Supports expressions. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Win Attach session. If omitted, the selector must include the window. |
timeout | number | Maximum ms to wait for the element. By default 30000. |
Example
Section titled “Example”Win Set Value selector = (campo "Cantidad") value = = toString(cantidad)Related activities
Section titled “Related activities”- Win Type — typing with simulate keyboard option.
- Win Get Text — read the current value.