'or' becomes 'and' in RanoreXpath when highlighting elements

Bug reports.
Posts: 19
Joined: Wed Mar 14, 2012 9:20 am

'or' becomes 'and' in RanoreXpath when highlighting elements

Post by sauer-peters » Thu May 31, 2012 12:08 pm

I manually edited a RanoreXpath in the element repository of my test project to handle the fact that the same element results in two different Xpaths when running the test on Win7 and XP.
I combined two attributes with 'or' operator. The element path is now something like:

Code: Select all

 ... .//checkbox[@accessiblename='Enable local exposure' or @controltext='Enable local exposure']
When openning the path editor initially the element will be found correctly and the xptah is shown correcly.
But after clicking the 'Highlight' oder 'Verify' button the 'or' in the xpath automatically changes to 'and' and the element is no longer found because of the now incorrect xpath.
Element found correctly
RanoreXpathWithOr_2.png (91.59 KiB) Viewed 1447 times
Element not found because xpath has changed
RanoreXpathWithOr_3.png (74.45 KiB) Viewed 1447 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: 'or' becomes 'and' in RanoreXpath when highlighting elements

Post by Support Team » Thu May 31, 2012 2:09 pm


This is unfortunately a known issue, but it will be fixed with 3.3, which should be released very soon :D .

Ranorex Support Team