Precondition
Before acting, confirm identity, permissions, target object, and current state. A valid selector can still point to the wrong record.
Browser agents must verify the world after acting. Simulate selectors, delayed updates, stale pages, retries, and irreversible actions while the state graph reveals where false success enters.
Open the verification labBefore acting, confirm identity, permissions, target object, and current state. A valid selector can still point to the wrong record.
Record operation identity, inputs, timestamp, and browser evidence. Idempotency keys prevent retries from duplicating side effects.
Observe the durable business outcome, not just a toast or disabled button. Triangulate independent signals when stakes are high.
A click event may fire while the request fails, the session expires, a modal covers the target, or the page updates optimistically. Verify server-backed state where possible.
After a timeout the agent may not know whether the action committed. Retrying blindly can send two messages or create two bookings. Query by idempotency key before repeating.
Payments, deletions, submissions, and external messages deserve explicit confirmation, narrower selectors, stronger postconditions, and a clear human escalation path.
Usually not. Single-page apps can change state without navigation, and redirects can occur after failure. Check the domain-specific outcome.
Use the minimum independent evidence appropriate to impact. A draft save may need one signal; a payment may require order state, transaction identity, and amount.
Stop when the budget is exhausted, failure is non-transient, the outcome is ambiguous for an irreversible action, or a safety boundary requires review.
RFC 9110 defines HTTP method semantics and idempotency. W3C WebDriver specifies browser automation commands and state. Playwright actionability documentation explains pre-action checks. WebArena evaluates autonomous browser agents on realistic tasks.