Locators

Locators image
Locators are expressions that identify elements on a web page within automated tests. 

When implementing Playwright, documentation states that locators should reflect the user's perspective, which is also referred to as having user-centric locators. Other frameworks such as Cypress use locators based on IDs or an XPath.
Explore MoT
AI-driven testing in practice: from requirements to reliable automation image
See where AI genuinely helps, where it doesn’t, and how testers can stay firmly in control
MoT Software Testing Essentials Certificate image
Boost your career in software testing with the MoT Software Testing Essentials Certificate. Learn essential skills, from basic testing techniques to advanced risk analysis, crafted by industry experts.
This Week in Quality image
Debrief the week in Quality via a community radio show hosted by Simon Tomes and members of the community
Subscribe to our newsletter