Page 1 of 1

Help with RanoreXPath

Posted: Tue Jan 05, 2016 5:10 pm
by MrNoSmiles
Hey all!

I am working on evaluating this tool, and have run into a snag.

On our web page, There is a table that appears as screenshot "S2".
S2.PNG
I want to uniquely identify the row of this table that is currently at the top.

However, I can't use the Xpath that Ranorex found because the TR it finds is a GUID that is uniquely generated each time the file gets uploaded.
S1.PNG

How can I alter the xpath to tell Ranorex to only look for the TD for the filename and the TD for the status?

Re: Help with RanoreXPath

Posted: Thu Jan 07, 2016 8:14 am
by odklizec
Hi,

Please upload a Ranorex snapshot (not screenshot) of the table in question. It would be much easier to help you with snapshot, because it contains much more detailed info about the GUI ;)

Re: Help with RanoreXPath

Posted: Thu Jan 07, 2016 2:31 pm
by krstcs
If you ALWAYS want the first row you can change the path for the TR element to this:

/tr[1]

You don't have to keep the path the Ranorex generates if it isn't going to work for what you need.

Re: Help with RanoreXPath

Posted: Thu Jan 07, 2016 8:29 pm
by MrNoSmiles
Thanks so much everyone!

I actually figured it out, krstcs was right on point. That is the solution I went with.