Hi!
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:
.//form[#'technical_element_form']/div//tag[@tagname='as-toolbar-block']/div/tag[2]/span/button[@innertext='Back']
the other here:
.//form[#'technical_element_form']/div/?/?/span/?/?/div/tag[2]/span/span[1]/button[@innertext='Back']
identify same button in different locations
-
- Posts: 3
- Joined: Tue Oct 11, 2016 5:35 pm
Re: identify same button in different locations
Hi,
Have you tried something like this:
Have you tried something like this:
Code: Select all
.//form[#'technical_element_form']/div//span/button[@innertext='Back']
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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