Web Driving

Drive web UIs repeatably using OpenClaw’s browser tool (Playwright-style), with a bias toward robustness over brittle selector hacks.

Workflow

0) Choose the right browser profile

If automation keeps failing (consent walls, CAPTCHAs, logged-out state), switch to Chrome relay.

1) Establish the target + constraints

Write down (in your scratchpad / message) the concrete parameters before clicking anything:

2) Navigate + stabilize

3) Apply filters in a robust way

General pattern for flaky dialogs:

  1. Click the button that opens the dialog.
  2. If click-by-ref is flaky, fall back to evaluate:
  3. Close the dialog (Escape or close button).
  4. Confirm the filter “stuck” by reading the visible label/state.

4) Extract results

Use a two-pass approach:

5) Report back (minimal + actionable)

Return:

Do not spam the user with intermediate screenshots; only send them if the user asks or if ambiguity blocks progress.

Site playbook: Google Flights

Read: references/google-flights.md

Key tactics:

Resources

references/