Record a Browser Workflow
Browser beats capture semantic application states and interactions rather than arbitrary screen pixels.
- Start the application in setup or hand a URL from a terminal action to a named browser pane.
- Open the page with an explicit readiness condition.
- Prefer stable semantic targets such as
test_id, role, label, or text. - Use browser primitives such as
click,type_text,drag, andmove_pointer. - Wait for the state caused by an interaction before continuing.
- Add checks for the visible or persisted result.
Use component-relative percentages only when the page has no meaningful DOM
destination. Authentication values belong in a recording-local
app.secret.env or declared CI source; do not put them in visible command
configuration.
See the recording schema for exact browser targets, completion conditions, and timing fields.