And with this GUI, I have several element with the same element name. Is it possible to click on one chosen element by Index or something like that ?
How can I do to specify the element to click ?
Thanks in advance
Class library usage, coding and language questions.
2 posts • Page 1 of 1
You can read all elements with the same role and name as follows:
Code: Select all
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