Developer identifies two root causes behind Claude Chrome browser automation click failures
A developer managing over 600 AI-automated web tools has identified two distinct bugs causing Claude's Chrome MCP browser automation to misplace clicks. The first issue occurs because a page's viewport width continues expanding for two to three seconds after loading completes, meaning screenshots taken during this settling period produce coordinates that no longer match the actual layout. The second problem involves the double-click action firing too slowly, exceeding the app's double-click threshold and registering as two separate single clicks instead. For standard HTML pages, the developer recommends using element references via natural-language search or accessibility trees rather than coordinate-based clicking, as these survive layout shifts. For canvas-based apps where HTML elements are unavailable, the fix involves waiting for the viewport to stabilize before screenshotting and simulating double-clicks manually using two rapid batched left-clicks.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in