Loop through all items when RxPath finds more than one item
Posted: Thu Jul 18, 2013 10:50 am
Here is the situation: I want to loop through each cell in a table column.
To get the column I specified the rxPath this way "whatever/table/row/cell[@accessiblename~'(?i:column header)']" ("column header" is the displayed header of the column). Using this path the Ranorex Spy finds all the cells in the specified column. If I highlight them they all get highlighed.
Given the above rxpath how can I loop through all the elements (I'm using c#) that the Spy would find using the above path? In all my attempts I only managed to geht the header cell of the column.
I don't necessary need to work with the rxPath. It would be fine to work with the repository item that is defined with the above rxPath.
Christoph
To get the column I specified the rxPath this way "whatever/table/row/cell[@accessiblename~'(?i:column header)']" ("column header" is the displayed header of the column). Using this path the Ranorex Spy finds all the cells in the specified column. If I highlight them they all get highlighed.
Given the above rxpath how can I loop through all the elements (I'm using c#) that the Spy would find using the above path? In all my attempts I only managed to geht the header cell of the column.
I don't necessary need to work with the rxPath. It would be fine to work with the repository item that is defined with the above rxPath.
Christoph