70 / 139 · 13 Browser Automation with Playwright · Locator Strategies← prev⊞ allnext →☰ Read as one page
7.1Overview
Choosing the right locator strategy is one of the highest-leverage decisions in test automation. Fragile locators are the leading cause of test maintenance burden. Playwright provides user-centric locators that mirror how real users find elements — and they are dramatically more stable than the CSS/XPath selectors used in Selenium.