Skip to content

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).

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.

ParameterEditorDescription
selectorselectorThe ComboBox or list.
itemexpressionText or index (base 0) of the item to be selected.
ParameterEditorDescription
sessionsessionWin Attach session. If omitted, the selector must include the window.
loadWaitnumberMore to wait after opening the combo for its options to load (lazy loading combos). By default 700.
timeoutnumberMaximum in ms to wait. By default 30000.
Win Select selector = (combo "Ciudad") item = "Bogotá" // por texto
Win Select selector = (combo "Tipo") item = 0 // primer ítem (por índice)