pyWinAuto: pywinauto.controls.win32_controls.ComboBoxWrapper -- Wrap a windows ComboBox control

ComboBoxWrapper

Wrap a windows ComboBox control


Attributes

a handle

None

a windowclasses

['ComboBox', 'WindowsForms\\d*\\.COMBOBOX\\..*', 'TComboBox']

a friendlyclassname

'ComboBox'

Methods

f __init__(self, hwnd) ...

Initialize the control

f DroppedRect(self) ...

Get the dropped rectangle of the combobox

f ItemCount(self) ...

Return the number of items in the combobox

f SelectedIndex(self) ...

Return the selected index

f ItemData(self, item) ...

Return the item data associted with this item

f ItemTexts(self) ...

Return the text of the items of the combobox

f Texts(self) ...

Return the text of the items in the combobox

f GetProperties(self) ...

Return the properties of the control as a dictionary

f Select(self, item) ...

Select the ComboBox item

item can be either a 0 based index of the item to select or it can be the string that you want to select

f __eq__(self, other) ...

Returns True if the handles of both controls are the same

See the source for more information.