Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97790

Can we use Condition with axes in XPATH?

$
0
0

Can we use Condition with axes in XPATH?

Trying to check both parent and child in XPath. Example:

span[text()='Accounts']/parent::a OR child::div

I know this is wrong. But is there any way to check the condition?


Viewing all articles
Browse latest Browse all 97790

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>