Win List Items
Win List Items
Section titled “Win List Items”Type: win-list-items · Package: Desktop Activities v1.0.0 · Output: string[]
Returns all items available from a ComboBox or list. Useful to know the options before choosing, validate that the one you are looking for exists, or go through each option.
How it works
Section titled “How it works”Locates the control by its selector and returns its items as an array of texts.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The ComboBox or list. |
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 in ms to wait. By default 30000. |
Output
Section titled “Output”Returns a string[] with the item texts.
Example
Section titled “Example”Check that an option exists before selecting it:
Win List Items selector = (combo "Ciudad") → output: ciudadesIf condition = = ciudades.Contains("Medellín") └─ then: Win Select selector = (combo "Ciudad") item = "Medellín"Related activities
Section titled “Related activities”- Win Select — select one of the items.
- For Each — cycle through all items.