Guides
Lessons teach XPath itself. Guides put it in context: which version your tools speak, how the locator landscape is shifting, how frameworks differ, and what to do when a suite goes red in CI. Dated, and updated as the ecosystem moves.
Start here
Locator Strategy in 2026: Where XPath Fits Alongside Role and Test-ID Locators
The industry has moved toward user-facing locators. XPath has not gone away. A pragmatic decision framework for choosing between test ids, ARIA roles, CSS and XPath in a modern suite.
Self-Healing Locators and AI-Generated XPath: What Works and What to Watch
Tools now generate locators, repair them when they break, and let language-model agents drive browsers. A sober look at what that means for XPath skills and locator quality.
XPath vs CSS Selectors: A Side-by-Side Reference
Every common locator written both ways, the four things only XPath can do, the two things only CSS can do, and the performance question answered with numbers instead of folklore.
XPath 1.0 vs 2.0 vs 3.0 vs 3.1: What Your Tools Actually Support
Four XPath versions exist. Browsers, Selenium, Playwright, Appium and lxml all speak the first one from 1999. Here is what each version added, which processors implement it, and how to tell which you have.
Versions & Standards
XPath 4.0: What Is in the Community Draft and Why Browsers Will Not Get It
XPath 4.0 is being drafted by a W3C community group rather than a working group. Here is what it proposes, who will implement it, and what it means (nothing, yet) for test automation.
XPath 1.0 vs 2.0 vs 3.0 vs 3.1: What Your Tools Actually Support
Four XPath versions exist. Browsers, Selenium, Playwright, Appium and lxml all speak the first one from 1999. Here is what each version added, which processors implement it, and how to tell which you have.
Frameworks
Trends & Ecosystem
Strategy
Locator Strategy in 2026: Where XPath Fits Alongside Role and Test-ID Locators
The industry has moved toward user-facing locators. XPath has not gone away. A pragmatic decision framework for choosing between test ids, ARIA roles, CSS and XPath in a modern suite.
Test ID Conventions: data-testid, data-cy, data-test and How to Agree on One
Test ids are the most robust locator hook there is, if the team actually uses them consistently. A practical convention covering attribute name, naming scheme, where to put them, and how XPath and every framework consume them.
XPath vs CSS Selectors: A Side-by-Side Reference
Every common locator written both ways, the four things only XPath can do, the two things only CSS can do, and the performance question answered with numbers instead of folklore.