Consider this element.
<a href="#justicefornirmala"></a>
I'm using xpath to select it like
//a[contains(@href,"nirmala") and not contains(@href,"nepal")]
But this is not selecting the <a>
tag. What am I missing here ? How do I fix this?
It was a syntax error. Doing this fixes it.
//a[contains(@href,"nirmala") and not(contains(@href,"nepal"))]
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments