Get Selectable Items

Reads the items and the selected item of a drop-down list (combo box). Works on Windows, browser and SAP elements; on Windows, ribbon tabs, menus and toolbar drop-down buttons are also supported, and the list is opened and closed while it is read. By default, Element uses the element found by the Get Element activity.


⬅️INPUT

Parameter

Type

Required

Description

Element

IElement

✅ Yes

The list whose items are read. If empty (null), the activity throws an error.

Timeout

TimeSpan

❌ No

SAP only: maximum time to wait for SAP to respond. If empty or 0, 30 seconds.


➡️OUTPUT

Parameter

Type

Description

SelectItems

List<PAWComboBoxItem>

The items in the list. Each item has Index (zero-based), Key and Value. In the browser, Key is the option's display text and Value its value; on SAP, Key is the entry's key and Value its text; on Windows, only Value (the item's text) is filled.

SelectedItem

PAWComboBoxItem

The selected item. Not assigned if there is no selected item.