I\'m using Firefox\'s XPath-checker and can\'t get the syntax right. I have a link:
LinkName
and I try doing:
You can Use Translate
//a[translate(text(), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'linkname']
There is no function called lower-case
in XPath 1.0 which is the version of XPath used in Firefox.
You need to use the ugly translate
function instead:-
translate(text(), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')
...but of course you would need to extend this if you need coverage of a wider character-set.