Phase 7 · Web Automation Testing
TopicsLocators & XPath
Part of the QA Testing Roadmap.
Summary
The strategies for finding a specific element on a page — CSS selectors, IDs, and XPath expressions — a foundational skill, since a test can't interact with an element it can't locate reliably.
How to Learn This
- 1Practice locating elements using ID, CSS selector, and XPath on a sample page.
- 2Learn why relying on brittle, auto-generated locators causes tests to break frequently.
- 3Build a personal preference order for locator strategies, favoring stable, meaningful attributes.
More topics in Web Automation Testing
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — free on the InsideEdge app.