You can read all elements with the same role and name as follows:
Code: click into code to enlarge
element=Ranorex.ControlGetElement(form)
itemCount = Ranorex.ElementFindChildren(element, Ranorex.ROLE_..., 'Name')
for index in range(0,itemCount):
child= Ranorex.ElementGetChildFieldItem(index)
if child == None:
print 'Cannot read child' + str(index)
continue;
print ' child item =' + child[2]
Jenö
Ranorex Team |