Skip to content

UIAComboBoxEdit

UIAutomation UIAComboBoxEdit.

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

value = SeS('SomeUIAComboBoxEdit').GetItemNameByIndex(index)

SelectedIndex

Index of the selected element of the object.

Type: number

Accessors: GetSelectedIndex, SetSelectedIndex

value = SeS('SomeUIAComboBoxEdit').GetSelectedIndex()

SeS('SomeUIAComboBoxEdit').SetSelectedIndex(/**number*/ ind)

Text

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

Type: string

Accessors: GetText, SetText

value = SeS('SomeUIAComboBoxEdit').GetText()

SeS('SomeUIAComboBoxEdit').SetText(value)

Action Detail

DoSelectItem

Selects an item of this object.

SeS('SomeUIAComboBoxEdit').DoSelectItem(item)

Parameters:

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

Returns:

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

DoSetText

Set text into combobox with an edit box.

SeS('SomeUIAComboBoxEdit').DoSetText(newText)

Parameters:

Name Type Description
newText string Text to set

Returns:

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

Behavior Pattern: UIAutomationTextBoxBehavior

Property Summary

Property Description Getter Setter
Text Text of the object, 'false' if text can not be read. GetText SetText

Action Summary

Action Description
DoSetText Sets text value of this object.

Property Detail

Text

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

Type: string

Accessors: GetText, SetText

value = SeS('SomeUIAComboBoxEdit').GetText()

SeS('SomeUIAComboBoxEdit').SetText(/**string*/value)

Action Detail

DoSetText

Sets text value of this object.

SeS('SomeUIAComboBoxEdit').DoSetText(val)

Parameters:

Name Type Description
val string Text value.

Returns:

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