XPath
A query language for selecting nodes in an XML or HTML document, often used to locate elements in UI tests.
What is XPath?
What is XPath?
XPath is an expression language for navigating and selecting nodes in XML and HTML, and it's a common way to locate elements in UI automation, especially for complex traversals like selecting by text or navigating to a parent. XPath is powerful but can produce brittle locators when tied to deep, absolute document paths that break the moment the structure shifts. Best practice favors resilient, user-facing locators over fragile absolute XPath. When an XPath does drift, QI's healing engine can relocate the intended element and repair the selector automatically.