XPath Practice Playground By Shreenibas

Use this single page to practice XPath location strategies. Many elements are intentionally quirky (extra spaces, dynamic ids, nested structures, aria attributes, etc.).

Screen reader status region

Login Form

chip-example
Forgot password?

Search Panel

Try case-insensitive text matching, e.g., link below contains the word privacy in mixed case.

Read our PriVaCy policy

Download Guide (PDF)

Logo

Orders Table

Invoice Product Price Action
INV-120 Keyboard 49.00
INV-121 Laptop 1099.00
INV-122 Monitor 299.00
INV-123 Mouse 399.00
INV-124 Desktop 699.00

Profile Section

Profile

$199

Class Token Matching

Primary CTA
Secondary CTA
rounded chip
tiny chip

ARIA Attributes

SVG Icon

XPath hint: use *[local-name()='svg']/*[local-name()='path']

Embedded Frame

Switch to frame first; then locate inside it.

Dynamic IDs

XPath hint: starts-with(@id,'user_') or contains(@id,'react-select')

Shadow DOM

Note: XPath cannot pierce shadow DOM. Use JS/shadowRoot APIs.