76 / 139 · 13 Browser Automation with Playwright · Advanced Locators← prev⊞ allnext →☰ Read as one page
8.1Overview
Real-world applications have complex UIs: tables with hundreds of rows, nested components, dynamic lists, iframes, and shadow DOM. Playwright's locator API provides composition tools — filtering, chaining, and scoping — that let you target precise elements without fragile selectors.