Module 8: Browser Automation
An escalation ladder that replaces copy-pasting web content by hand: HTTP APIs first, HTML parsing second, full browser control only when the job demands it.
Lessons
- The escalation ladder. Six web jobs from the billing-api week. Put each on a rung, run it, and watch what that rung does.
- The right hands. Four setups: a read before a click, Chrome by default, an install scope, and a browser that will not connect.
- Act, then look. Drive a six-action run on the demo shop. Decide when Claude re-reads the page, and what a failed check means.
- The debug loop. Pay invoice does nothing on your local dev server. Run the loop in any order until it is fixed and proven.
- Redline the blueprint. Priya's Monday report plan, phrase by phrase. Mark what should not survive review, then dry run it.
- Fresh check. A case you have not seen: a local draft form with a Send button. Act on it. Your first result is kept.
What you take away
- Climb the escalation ladder: HTTP API first, static HTML second, full browser only when the target forces it
- Many JavaScript-heavy sites expose JSON endpoints you can call directly, skipping the browser entirely
- Verify page state after every browser action; silent drift is the number one cause of broken automation
- Pointing the browser at your own app closes the debugging loop: Claude reads console errors and network failures directly
- For cross-application workflows, write the blueprint with tiers, fallbacks, and data contracts before executing anything
Field exercises
- Build a News Digest From an API (No Browser)
- Run the Escalation Ladder Decision Drill
- Scrape a Paginated Site Without Opening a Browser
- Drive a Real Browser Through a Two-Page Workflow
- Debug Your Own Web App With the Browser as Your Eyes
- Run a Responsive QA Sweep Across Three Viewports
- Build a Self-Verifying Multi-Step Browser Workflow
- Design a Cross-Application Automation Blueprint
- Wire Up a Self-Verifying Coding Task