I have read the answers to these three questions about case insensitive XPath searches:
case insensitive xpath contains() possible?
Using upper-case and lower-case xpath functions in selenium IDE
XPath find text in any text node
When I try the XPath 1 and 2 solutions suggested there in Chrome and Firefox none of them work (good).
I am looking for a word that currently is written with initial upper case latter and the rest lower case (like this: Example
) but translate(.,'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLOMNOPQRSTUVWXYZ')
can't find the string at all when using at least two letters. I have tried EX (2 hits, none of them on Example), ex (0 hits), Ex (0), xa (0), XAM (0)
Changing the translate order to translate(.,'ABCDEFGHIJKLOMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')
results in EX (0 hits), ex (0), Ex (0), xamp (1 hit - correct!! But I have to exclude the initial letter which is unacceptable), xa (0)
Trying the XPath 2.0 solutions suggested in the answers linked above returns these errors:
I want to perform a case insensive search for this XPath
//div[@class='nav group']//a[contains(text(), 'Example')]
How do I do that?