GuideUpdated · by Kunj Shah
How browser agents fail. Five causes, each with the evidence that proves it.
Short answer: a browser agent that fails usually fails in one of a few ways, and most of them look like success from the agent's own report. Three of the five failures below end with the agent saying it worked. Each one is a real run recorded by Walkcast Lab against a sample app, with the cause worked out from the browser's own trace and checked against what the application actually stored.
What this is, and what it is not
The agents in these runs are deterministic scripts, not language models, and each fault was injected into the sample app on purpose. That makes the five fixtures reproducible and the causes unambiguous. It also means this page says nothing about how often a language model makes any of these mistakes. A live-model run exists too, from one seed, and the project's own notes say it is a first look rather than a benchmark. What the page shows is what each failure leaves behind in a trace, which is what you need in order to recognise it in your own agent.
The task
Every run is the same task: sign in, create a lead for Acme Corp with the contact Jane Roe and the owner Priya Shah, then report the lead's id. The oracle is the application's own records, not the agent's account of what it did.
1. stale-observation
The agent reads a list of owners, waits, and then picks from the list by position. The list was refreshed in between, so the same position now holds a different person.
| Evidence | Step 10 targeted “Priya Shah” from the observation in step 7, 1,725 ms old, but the element at that position was “Alex Kim” when the action ran. |
|---|---|
| The agent said | “Lead 1001 created for Acme Corp, owner Priya Shah.” |
| The application held | The lead was saved with the owner Alex Kim. |
| Symptom | false-success |
| What helps | Re-read the page, or re-resolve the control by name, immediately before acting on an observation that is more than a moment old. |
| Fixture | results/fixtures/stale-owners-s1-stale-observation |
2. unsafe-retry
A save ends with a 504, so the agent cannot tell whether it worked. It sends the same write again without checking.
| Evidence | The write in step 12 ended ambiguously (504); step 20 sent the same write again without first reading back whether the first one had succeeded. |
|---|---|
| The agent said | “The server returned an error twice.” The agent reported failure. |
| The application held | Two leads were created (ids 1001 and 1002) for the same request. |
| Symptom | duplicate-action |
| What helps | After an ambiguous response, read the state back before repeating a write. |
| Fixture | results/fixtures/gateway-timeout-s1-unsafe-retry |
3. auth-lost
The session expires while the form is being filled in. The save is bounced to the login page and the agent carries on as if it had gone through.
| Evidence | Session was lost mid-task: 1 write rejected for authentication; redirected to login at step 12. |
|---|---|
| The agent said | “Submitted the lead for Acme Corp; the session was refreshed afterwards.” |
| The application held | No lead exists. |
| Symptom | false-success |
| What helps | Treat a redirect to the sign-in page after a write as a failed write, and sign in again before retrying. |
| Fixture | results/fixtures/session-expiry-s1-auth-lost |
4. app-dropped-field
The agent does everything right and the application quietly ignores one field. This one is the application's bug, not the agent's.
| Evidence | The browser submitted owner “Priya Shah” (as form field ownerId) but the application stored “Unassigned”. The agent's input was correct; the application ignored it. |
|---|---|
| The agent said | “Lead 1001 created for Acme Corp, owner Priya Shah.” |
| The application held | The lead exists, with the owner Unassigned. |
| Symptom | false-success |
| What helps | Read the saved record back and compare it with what was entered, instead of trusting the confirmation message. |
| Fixture | results/fixtures/silent-owner-drop-s1-app-dropped-field |
5. locator-not-found
The page changed and the control the agent was told to click is no longer there. Here the agent fails honestly.
| Evidence | Step 11 (click on “#save-lead”) found no matching element: page.click timed out after 2,000 ms. |
|---|---|
| The agent said | “Could not submit the form.” The agent reported failure, and was right. |
| The application held | No lead exists. |
| Symptom | wrong-outcome |
| What helps | Locate controls by what they are called on the page rather than by a fixed selector, and re-record the fixture when the page changes on purpose. |
| Fixture | results/fixtures/ui-drift-s1-locator-not-found |
What happened when a fixed agent replayed them
The naive script (v0) fails all five fixtures. A fixed version (v1) passes all five. A third version (v2) is v1 with the read-back step removed on purpose, and it passes four and fails the unsafe-retry fixture again, which is the point of keeping the fixture: the regression is caught. Replaying each fixture with the script that originally failed reproduced the original cause 5 times out of 5. These are counts from one run per fault, so they show the mechanism works, not a rate.
How this sits against public benchmarks
Public benchmarks measure a different thing: how often an agent succeeds, not why it failed. In WebArena, a benchmark of self-hosted versions of real websites, the best GPT-4-based agent completed 14.41% of tasks against 78.24% for humans. In τ-bench, which tests tool-using agents against domain rules over repeated trials, even state-of-the-art function-calling agents succeeded on fewer than 50% of tasks, and reliability over eight trials (pass^8) fell below 25% in the retail domain. Both papers are from 2023 and 2024 and both numbers move as models change, so treat them as evidence that browser agents fail often, not as a current scoreboard. Neither paper classifies the cause of a failure, which is the gap the fixtures above fill.
Sources
- Zhou et al., WebArena: A Realistic Web Environment for Building Autonomous Agents, 2023 (revised 2024). The 14.41% agent and 78.24% human task-success figures quoted above are from this paper.
- Yao et al., τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains, 2024. The sub-50% success rate and the pass^8 reliability figure quoted above are from this paper.
Use it on your own agent
Everything above is what Walkcast Lab produces for any agent that drives a real browser: the cause, the step and request that show it, and a fixture you can replay. See Stagehand evals and testing for the commands, or the Lab page for the whole picture.
Questions people ask
- Why do browser agents fail?
- In the five failures recorded here: acting on a stale view of the page, retrying a write without checking whether it worked, losing the session mid-task, an application that silently drops a field, and a page that changed under a fixed selector. Three of the five end with the agent reporting success.
- How can an agent report success when the task failed?
- It trusts a confirmation message instead of the application's records. A toast, a redirect or a 200 response says a form was accepted, not that the right data was stored. Checking the saved record against what was entered is what catches it.
- Are these results from a language model?
- No. The agents in these runs are deterministic scripts and each fault is injected into a sample app on purpose, so the causes are unambiguous and reproducible. The page shows what each failure looks like in a trace, not how often a model makes it.