Learn XPath
Master XPath from the ground up with our structured lessons. Each lesson includes practical examples, robustness ratings, and links to try them in the playground.
New to XPath?
Start with our Introduction lesson to understand the fundamentals, then progress through the basics before tackling advanced patterns.
Start with IntroductionGetting Started
Essential XPath concepts for beginners
Introduction to XPath
Learn what XPath is, why it's essential for test automation, and how it compares to CSS selectors.
Relative vs Absolute Paths
Understand why relative XPath expressions are essential for maintainable test automation.
Attribute Selectors
Master the @ syntax for selecting elements by their attributes in XPath.
Core Tools
Master the fundamental XPath tools and axes
Text Handling
Work with text content effectively
Advanced Patterns
Complex selection strategies for real-world scenarios
Recommended Learning Path
Basics
Foundation concepts
Core Tools
Axes & predicates
Text Handling
Text functions
Advanced
Complex patterns