RanoreXPath operator precedence
Posted: Tue Sep 25, 2018 3:54 pm
I want to specify a RanoreXPath that finds a form which is owned by either process P1 or P2, and which has a well-known window text. Being used to usual operator precedence, I am tempted to write
When I press ENTER, Ranorex removes the parentheses, so that I see
so that I come to doubt whether the 'and' or the 'or' binds stronger in RanoreXPath.
Can anyone comment?
Code: Select all
/form[(@processname='P1' or @processname='P2') and @windowtext='mytext']
Code: Select all
/form[@processname='P1' or @processname='P2' and @windowtext='mytext']
Can anyone comment?