I'm looking to implement a general localisation test using webdriver and my idea is:
- Select all elements that contain text
- Use a java language identification library to verify that the text is in some specific language
I looked up various ways to select elements using text but everything documented seems to show ways of locating using specific text using contains() or text()
I thought the following would work:
//*[contains(text(), '')]
but that selects everything whether it has text or not. It also selects elements in the header. I want to select all visible text on the page, extract that text and pass it through the language identification library element by element.