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.
RanoreXpathWithOr_2.png
RanoreXpathWithOr_3.png
You do not have the required permissions to view the files attached to this post.