Post
by krstcs » Tue Oct 30, 2018 2:26 pm
As Pavel said, it would be helpful if you posted a Ranorex Snapshot of the table.
In addition, this is actually one of the times that you probably SHOULD use indexes.
For example, to get the last row, you would use: "./tr[-1]". You have already demonstrated that you understand how to get the 2nd and 5th, etc.
You can parameterize the index as well, so you can pass it in at runtime from a datasource or a different variable, like: "./tr[$myIndex]".
Edit to add: Note that XPath (and therefore RanoreXPath) indexes are 1-based, NOT 0-based like .NET indexes.
Shortcuts usually aren't...