Hey! Yeah, `contains(text(), 'error')` is pretty solid for partial matches with xpath like text.
But if the text is split across nodes, try `//div[contains(., 'error')]` instead—it checks the whole element, not just direct text.
For more complex stuff, check out [XPath Tester](https://www.freeformatter.com/xpath-tester.html). Super handy for debugging!
But if the text is split across nodes, try `//div[contains(., 'error')]` instead—it checks the whole element, not just direct text.
For more complex stuff, check out [XPath Tester](https://www.freeformatter.com/xpath-tester.html). Super handy for debugging!
