identify same button in different locations

Best practices, code snippets for common functionality, examples, and guidelines.
Posts: 3
Joined: Tue Oct 11, 2016 5:35 pm

identify same button in different locations

Post by skyphoenix » Tue Oct 11, 2016 9:06 pm

We are testing a web application which uses i.e. a back button. The back button is used on different web bpages of the application and so I have several Xpath for this object.

Currently I would like to combine those two path or use them with an XOR operator in the Xpath if possible. Or do I really have to treat them as several repository items?
I tried to experimented weith the xpath but unfortunately, no luck.
Can this be solved with one Xpath?

one is here:

the other here:

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

Re: identify same button in different locations

Post by odklizec » Wed Oct 12, 2016 9:35 am


Have you tried something like this:

Code: Select all

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