I tried to locate use
element with attribute value '#aaa'
for below snippet
<svg>
<use xlink:href='#aaa'></use>
</svg>
I was able to locate using css selector use[* |href='#aaa']
. But I require it in xpath. I tried below xpath but it is not working
(//*[name()='use'])[ * ='#aaa' or @href='#aaa']
Note :I need to use the value '#aaa'
to differentiate from other elements.
Could anyone please help to construct this xpath.