So I use xpath locators and slowly converting to CSS.
I haven't found a way to do an exact match based on text.
For example converting //a[text()='Log Out']
.
I know you can do css=a:contains('Log Out')
but I want to match exactly to the text. Also I know I can do link=Log Out
but looking for a solution with CSS.
a:contains('Log Out')
doesn't seem to be valid CSS?