power-automatepower-automate-desktop

How I can target this web element using xpath?


I have this element :

<a> < </a>

This CSS selector was working

a:contains('<') 

But for learning I tried to use the following xpath but without success

//a[text()='<']
//a[normalize-space(text())='<']
//a[contains(text(), '<')]

How I can do that with xpath ?

enter image description here


Solution

  • Not sure that xpath is available in the text editor. I belive it must be a valid JS selector.

    This is working for me:
    a[Text=">"]