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?
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?