Playwright Locator vs ElementHandle: Choosing the Right Handle Strategy
Default to Playwright Locators for clicks, fills, and assertions—they re-query the DOM at action time, survive re-renders, and include auto-waiting. Reserve ElementHandles for drag-and-drop, page.evaluate, or reading hidden elements, and never cache handles across awaits or navigation.