locator

An object in a test that describes how to find an element on the page, such as “the button named Submit”.

In more detail

Locators that describe elements the way users see them, by role and name, survive styling changes. Locators that depend on CSS classes or page structure break easily.

Related terms

Taught in

References