OR condition in XPath
Posted: Thu Dec 19, 2019 12:01 pm
Hi,
Can I use OR condition in XPAth?
Can I use OR condition in XPAth?
Code: Select all
element//container/button[@accessiblename='Close' or @accessiblename='' and @accessiblerole='PushButton' and @visible='true']
Code: Select all
A or B and X
Code: Select all
(A or B) and X
Code: Select all
A or (B and X)
Code: Select all
//tag[@id='5' or (@tagname='abc' and @label='asdf')]
thanks for the info,odklizec wrote: ↑Thu Dec 19, 2019 12:14 pmHi,
drywall contractor services drywall services quotes
Yes, you can use conditions in Ranorex xpaths. For example like this:Code: Select all
element//container/button[@accessiblename='Close' or @accessiblename='' and @accessiblerole='PushButton' and @visible='true']