Moving a browser script to Stagehand v4 requires checking its timing assumptions. Browserbase's guide says this version has no Playwright dependency or interoperability, despite a familiar-looking automation interface. In particular, actions do not automatically wait for an element to become ready, so a ported script may try to click before the target appears. The migration guide recommends explicit waits first, then selectively replacing fragile selectors with natural-language actions. This keeps stable steps deterministic while using the model where identifying the intended control depends on the live page.