UIAComboBox

Extends UIAObject

Extends SeSSimulatedObject

Behavior Pattern: UIAutomationComboBoxBehavior

Property Summary

Property Description Getter Setter
ItemNameByIndex Returns item name by its index. GetItemNameByIndex
SelectedIndex Index of the selected element of the object. GetSelectedIndex SetSelectedIndex
Text Text of the object, 'false' if text can not be read. GetText SetText

Action Summary

Action Description
DoSelectItem Selects an item of this object.
DoSetText Set text into combobox with an edit box.

Property Detail

ItemNameByIndex

Returns item name by its index.'false' if name is not found.

Getter Parameters:

Name Type Description
index number Index of the item

Type: string|boolean

Accessors: GetItemNameByIndex

SelectedIndex

Index of the selected element of the object.

Type: number

Accessors: GetSelectedIndex, SetSelectedIndex

Text

Text of the object, 'false' if text can not be read.

Type: string

Accessors: GetText, SetText

Action Detail

DoSelectItem(item)

Selects an item of this object.

Parameters:

Name Type Description
item string | number Item index or text value to select.

Returns:

boolean: 'true' if success, 'false' otherwise.

DoSetText(newText)

Set text into combobox with an edit box.

Parameters:

Name Type Description
newText string Text to set

Returns:

boolean: 'true' if successul, 'false' otherwise