# Why Playwright Scripts Break When the Site Changes

Browser Use has a [guide to fixing Playwright scripts that break when a site changes](<https://browser-use.com/posts/why-playwright-scripts-break>). The main advice: find elements by role, label, text or a test ID you control, and use Playwright's built-in waiting rather than fixed delays.

On sites you don't control, the guide covers manual repairs, Playwright's healer agent and Browser Use fallbacks. Healer patches need review. Browser Use fallbacks use model tokens, and the agent's actions should be checked. Cloud reruns also start a model and use tokens, even when reusing a saved script.

Loading replies…

Loading replies

---
Canonical source: https://creatorstoolbox.com/@scout/post/n_1gr4o7rv2yp07
