A Few Pixels Can Send a Computer-Use Agent Off Course
We ran one expense-entry workflow through coordinate clicks, visual targeting, and accessibility controls. Window resizing exposed which method can recover and which should not reach the Submit button.
November 11, 2026 · 8 min read

The test task was an ordinary expense entry: read a receipt, enter the merchant and amount into a browser form, choose a category, attach the receipt, then save a draft. It is the kind of workflow that looks settled enough for desktop automation because the fields rarely change and the expected result is easy to describe.
The disturbance was small. I resized the browser window between actions and introduced a modal pop-up over the form, then repeated the same task using three control methods. One replayed stored screen coordinates. Another inspected screenshots and selected a visible target.
The last queried the accessibility tree, a structured representation that exposes controls by properties such as role, name, and state.
All three methods could finish the expense entry when the window stayed put. That baseline is nearly useless. The differences appeared only after the interface moved.
Coordinate clicks have a narrow safe area
A coordinate controller reduces each action to a position such as “click at this horizontal and vertical point,” followed by typing or a key press. It does not know that the point represents an Amount field. It knows only where that field was during recording or planning.
This was the fastest method in the undisturbed run. It required no screenshot interpretation and no search through interface metadata. Once the sequence existed, the controller could move directly from the merchant field to the amount field and onward to the category selector.
Resizing the browser changed the form’s layout. The fields did not disappear, but spacing shifted as the page reflowed, meaning the browser rearranged elements to fit the available width. A click aimed near the edge of the amount field landed outside it. The following keystrokes went nowhere useful because the controller never checked which element had focus.
A few pixels do not always cause failure. Large buttons have room for error. The risk rises around compact icons, narrow fields, table rows, and click points recorded near a control’s boundary, while display scaling or the appearance of a scrollbar can shift the effective target without making the page look meaningfully different to a person.
The more serious problem is silent continuation. After missing the amount field, the coordinate sequence still opened the category area and moved toward the receipt attachment. A workflow that stops on every missed focus event is inconvenient. One that continues can produce a plausible but incomplete expense draft.
Teams can reduce this risk by checking focus, text, or page state after each consequential action. At that point, however, the system is no longer relying on coordinates alone. It has acquired a perception layer, which removes much of the speed and implementation advantage that made coordinate replay attractive.
Screenshot targeting survives movement, at a cost
The visual controller captured the current screen before acting, located a control from its appearance and surrounding text, then clicked the estimated center. When resizing moved the Amount field, the next screenshot showed its new position, so the agent did not depend on the earlier coordinates.
That recovery is useful, but it is not free. Screenshot-based control adds a capture and interpretation step whenever the agent needs to locate or verify something. If a multimodal model performs that interpretation, each additional image can add latency and usage cost; if local template matching does it, the controller becomes more sensitive to color, scale, theme, and rendering changes.
The expense form also exposed an ambiguity that coordinates avoided. “Save draft” appeared in the form and in the pop-up’s explanatory text. A visual controller working from pixels and language had to distinguish the actionable button from nearby words, and confidence based on matching the phrase alone was not enough.
Screenshots can confirm what a user could see, which makes them valuable for recovery and audit evidence. They remain snapshots. A target can move after capture because a banner loads, a menu expands, or the page scrolls, leaving the controller to click a location that was correct a moment earlier. The safer pattern takes a fresh screenshot near the action and verifies the resulting state, but that means more model calls or more local image processing.
Visual targeting handled the resized expense form better than coordinate replay. I would still avoid giving it an unreviewed Submit action unless the workflow checks the amount, category, attachment, and final page state through a separate channel.
Accessibility controls are steadier when the interface cooperates
The accessibility controller asked the browser for a textbox named “Amount” and a button named “Save draft.” Because it selected controls by meaning rather than position, resizing the window did not change those references. The amount field could move across the screen without becoming a different node in the tree.
This method also offered cleaner verification. After entering the merchant, the controller could read the field’s current value rather than infer it from rendered pixels. It could inspect whether a checkbox was checked or a menu was expanded, provided the application exposed those states correctly.
The category selector showed the limit. It was visually recognizable as a dropdown, but its accessibility information did not expose an equally useful name and role. The controller could find nearby text yet lacked a dependable semantic target for the interactive element. A human saw one control.
The tree described a less coherent collection of nodes.
Poor labels, custom canvas interfaces, remote desktops, and controls drawn as images can all produce this mismatch. Accessibility control is not a universal route around the screen. It depends on the application publishing an accurate semantic structure, and a redesign can break that structure even if the page still looks unchanged.
The receipt attachment crossed another boundary. The browser button was available in the tree, but activating it opened a native file chooser outside the web page. Desktop agents need operating-system accessibility access, a dedicated upload tool, or a visual fallback to continue. Where an application offers an API for attachments, calling it directly is usually more stable than steering a file dialog.
Pop-ups test recovery, not target finding
The modal appeared before the expense draft was saved. The coordinate controller clicked the position where Save draft had been, which now belonged to the overlay. It had no representation of the interruption and no branch for closing it.
The visual controller could see that the form was covered. It still needed an explicit policy: close informational pop-ups, stop on anything involving consent or payment, then capture the screen again. Recognition alone does not tell an agent what it is authorized to dismiss.
The accessibility controller found the modal when the page marked it correctly. On a poorly implemented overlay, background controls can remain exposed in the tree even though a person cannot click them, so the agent may repeatedly invoke an element hidden behind the pop-up. A verification step must confirm that the requested state changed rather than treating a successful click command as a successful action.
That distinction mattered more than which controller found Save draft first. A desktop workflow is stable only when the agent can detect an interruption, choose an allowed response, and prove that the application accepted the next action.
Use the weakest method that passes disturbance tests
Coordinate replay remains reasonable for a fixed kiosk, a virtual machine with locked resolution, or a low-consequence internal task whose output is checked before use. It is cheap and quick, but window placement, scaling, scrolling, and notifications must be controlled as part of the automation environment.
Screenshot targeting fits interfaces that move but remain visually legible. Budget for repeated captures, model or image-processing latency, and state verification. Mask sensitive areas before sending screenshots to an external model, or keep perception local when the screen contains employee, customer, or payment data.
Accessibility control should be the default candidate for conventional desktop and web forms because it targets named elements and exposes state. Test the real application first. An unlabeled custom control can force a visual fallback halfway through an otherwise semantic workflow, while native dialogs may require a separate operating-system adapter.
For the expense-entry case, the practical design is hybrid. Use accessibility controls for the labeled fields and Save draft, switch to visual targeting only for the category widget if the application cannot be fixed, and upload the receipt through a direct tool when one exists. Coordinates can remain a last resort for a locked environment, not the primary locator.
Before deployment, rerun the workflow after resizing the window, changing display scaling, scrolling the form, opening a modal, and delaying page content. Record which target the agent intended, which element received focus, what state changed, and whether a retry occurred. If the system cannot produce those facts, it cannot distinguish a completed expense draft from a sequence of clicks.
Keep final submission behind a human approval until the agent can reliably reopen the draft and read back its consequential fields. The useful automation boundary is Save draft, not Submit.
Questions people ask
Why do coordinate-based computer-use agents fail after resizing a window?
They store or predict a location rather than addressing a control by identity. Resizing can reflow the page, add a scrollbar, or shift a narrow target, so a valid point becomes empty space or another element. Without focus and state checks, the agent may continue typing after the miss.
Is screenshot-based targeting more reliable than coordinate clicking?
It is more tolerant of movement because the agent searches the current image instead of replaying an old position. It also adds screenshot capture and interpretation time, can confuse repeated labels, and may act on a stale image if the interface changes between observation and click.
Are accessibility-tree controls always the best option?
No. They worked best on the labeled fields in the expense form, but the custom category selector exposed weak semantics and the native file chooser required another control path. Accessibility targeting is dependable only when the application and operating system publish accurate names, roles, states, and actions.
How should a team decide whether a desktop task is safe to automate?
Disturb the real workflow before deployment. Resize and scroll the window, introduce a pop-up, delay content, and verify every consequential state through a channel independent of the click itself. If the agent cannot detect a miss or recover without guessing, stop at a saved draft and require human approval.
One story a day
The story of the day, in your inbox
One real story about AI each morning — no hype, no alarm, just company for the road.



