Dude, xpath like text queries can be a pain when dealing with nested elements.
I usually go with `//*[contains(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), 'error')]` if case sensitivity is an issue.
Also, Chrome’s DevTools lets you test XPath right in the console—just hit `$x("your_xpath")`.
I usually go with `//*[contains(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), 'error')]` if case sensitivity is an issue.
Also, Chrome’s DevTools lets you test XPath right in the console—just hit `$x("your_xpath")`.
