Chapter 6 – Test Tools
Locator – ISTQB Definition
Last Updated: July 12, 2026 · SoftwareTestPilot QA Team
Official ISTQB Definition
A mechanism for identifying an element in the UI under test, such as id, name, CSS selector, XPath, or accessibility role.
In simple words
How your test finds a button, link, or field on the page.
Exam tip
Prefer stable locators: id > data-testid > role > CSS > XPath. Text-based locators are brittle across i18n.
Related terms
Practice this term in the ISTQB Mock Test
40 CTFL v4.0 questions, 60-minute timer, instant scoring and chapter-wise breakdown.
Practice in Mock Test