Help with RanoreXPath

Ask general questions here.
Posts: 2
Joined: Tue Jan 05, 2016 5:01 pm

Help with RanoreXPath

Post by MrNoSmiles » Tue Jan 05, 2016 5:10 pm

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 (51.19 KiB) Viewed 865 times
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 (91.82 KiB) Viewed 865 times

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

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6544
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Help with RanoreXPath

Post by odklizec » Thu Jan 07, 2016 8:14 am


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 ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Help with RanoreXPath

Post by krstcs » Thu Jan 07, 2016 2:31 pm

If you ALWAYS want the first row you can change the path for the TR element to this:


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

Posts: 2
Joined: Tue Jan 05, 2016 5:01 pm

Re: Help with RanoreXPath

Post by MrNoSmiles » Thu Jan 07, 2016 8:29 pm

Thanks so much everyone!

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