Combobox selecting
Posted: Thu Apr 26, 2007 2:22 pm
Hi,
Having some problems getting anything in a combo box selected, in this instance via the WDP Power Options in windows:
def SetTimePeriod(self):
self.active = PropertyPage.PropertyPage()
self.active.SelectTab(POWER_OPTIONS_PROPERTIES, 0)
self.active.SelectComboboxItem(POWER_OPTIONS_PROPERTIES, "Home/Office Desk", 1)
which uses:
def SelectComboboxItem(self, parent, item, instance):
""" Requires the parent window’s title and the name of the combobox item """
""" i.e. SelectComboboxItem(“Display Properties”, "Medium (16 bit)") selects 16bit colour depth in the WDP """
form = Ranorex.FormFindTitle(parent)
ComboBox = Ranorex.FormFindChildClassName(form, 'ComboBox', instance)
Ranorex.ComboBoxSetSelectedText(ComboBox, item)
Please help if you can, what happens is the cursor is seen to move towards the required combo box, then stops at its border, nothing changes or happens and no errors are thrown.
Having some problems getting anything in a combo box selected, in this instance via the WDP Power Options in windows:
def SetTimePeriod(self):
self.active = PropertyPage.PropertyPage()
self.active.SelectTab(POWER_OPTIONS_PROPERTIES, 0)
self.active.SelectComboboxItem(POWER_OPTIONS_PROPERTIES, "Home/Office Desk", 1)
which uses:
def SelectComboboxItem(self, parent, item, instance):
""" Requires the parent window’s title and the name of the combobox item """
""" i.e. SelectComboboxItem(“Display Properties”, "Medium (16 bit)") selects 16bit colour depth in the WDP """
form = Ranorex.FormFindTitle(parent)
ComboBox = Ranorex.FormFindChildClassName(form, 'ComboBox', instance)
Ranorex.ComboBoxSetSelectedText(ComboBox, item)
Please help if you can, what happens is the cursor is seen to move towards the required combo box, then stops at its border, nothing changes or happens and no errors are thrown.