I'm trying to access combo boxes in a table. What I need to do is:
1. get the number of items in each combo box
2. list the items in each combo box
3. select each item in each combo box
I'm having trouble with this. All the Ranorex combobox functions require the handle to the combobox in question, but I can't figure out how to get that.
So far what I have is something like this which returns the combobox tuple:
Code: Select all
import RanorexPython as r
...
table = r.ElementFindChild(formElement, r.ROLE_SYSTEM_TABLE)
row = r.ElementGetChild(table, 1) # get the first row after the table header
# This returns a tuple not a handle!
combo = r.ElementFindChild(row, r.ROLE_SYSTEM_COMBOBOX)
