We have no function for this, but you can do this easily as follows:
Code: click into code to enlarge
print ' Reading all property names and values'
element=Ranorex.ControlGetElement(propertyGrid)
itemCount = Ranorex.ElementFindChildren(element, Ranorex.ROLE_SYSTEM_ROW)
for index in range(0,itemCount):
property = Ranorex.ElementGetChildFieldItem(index)
if property == None:
print 'Cannot read property' + str(index)
continue;
print ' Index = ' + str(index),
print ' name = ' + Ranorex.ElementGetName(property),
print ' value = ', Ranorex.ElementGetValue(property)
Jenö
Ranorex Team |