Skip to content

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.

Locates the control by its selector and returns its items as an array of texts.

ParameterEditorDescription
selectorselectorThe ComboBox or list.
ParameterEditorDescription
sessionsessionWin Attach session. If omitted, the selector must include the window.
timeoutnumberMaximum in ms to wait. By default 30000.

Returns a string[] with the item texts.

Check that an option exists before selecting it:

Win List Items selector = (combo "Ciudad") → output: ciudades
If condition = = ciudades.Contains("Medellín")
└─ then:
Win Select selector = (combo "Ciudad") item = "Medellín"