Skip to content

Glossary: Testing Web Apps

Locator

Also written: locators

Playwright's description of how to find an element on the page, such as page.getByRole("button", { name: "Place order" }). It's the same idea as Testing Library's queries.

Where the book teaches it

Related terms

QueryRolePlaywright