Win Select
Win Select
Section titled “Win Select”Type: win-select · Package: Desktop Activities v1.0.0
Select an item from a ComboBox (drop-down list) or list of a desktop application, by its text or by its index (position).
How it works
Section titled “How it works”Locate the control by its selector, open it and choose the item that matches item (text, or index starting at 0). For combos that load their options from a database upon opening, the loadWait parameter waits for them to appear.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The ComboBox or list. |
item | expression | Text or index (base 0) of the item to be selected. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Win Attach session. If omitted, the selector must include the window. |
loadWait | number | More to wait after opening the combo for its options to load (lazy loading combos). By default 700. |
timeout | number | Maximum in ms to wait. By default 30000. |
Example
Section titled “Example”Win Select selector = (combo "Ciudad") item = "Bogotá" // por textoWin Select selector = (combo "Tipo") item = 0 // primer ítem (por índice)Related activities
Section titled “Related activities”- Win List Items — see what options the combo has.
- Win Get Text — read the selected option.