How to Build Reliable Stateful Browser Automation with Playwright