Element Locator
A rule or query that identifies a specific element on a page so a test can interact with it.
What is Element Locator?
What is Element Locator?
An element locator is how a test finds the thing it wants to act on—a button, a field, a link—using a strategy such as a role, a label, a test id, a CSS selector, or an XPath expression. The quality of a locator largely determines a test's stability: brittle locators tied to volatile markup break on the smallest change, while resilient ones survive redesigns. QI generates robust locators when it records a flow and, crucially, heals them automatically when the underlying page shifts, so tests keep finding their targets.