Click an element
qa_clickClicks page elements by snapshot ref, CSS selector, or accessible name, then returns what changed or the new URL so you can verify the action without taking another snapshot.
Instructions
Click an element on the page under test — by a qa_snapshot ref, by a CSS selector, or by the control's accessible name (the one to use right after a fill, since filling re-renders the step and staleness is what makes a ref refuse). Sends the full pointer sequence (pointerdown → mouseup → click), so component libraries that listen for pointerdown — Radix, shadcn, MUI — react to it like a real click. Scrolls the element into view first, and refuses a target that matches nothing or has zero size rather than silently doing nothing. Returns what the click CHANGED — what appeared, disappeared or updated once the page settled — so you do not need a follow-up qa_snapshot to find out whether it did anything. changed: null means the page did not move, which is itself the answer. On a recent extension build the reply also carries announced — what the page's live regions (aria-live / role=status / role=alert) actually spoke during the settle window, or null if they stayed silent: a toast that appeared in changed but not in announced is invisible to a screen reader (WCAG 4.1.3). AND WHEN THE PRESS NAVIGATED there is no diff to give: the reply carries navigated: <the new url> instead. That IS what the press did — do not press again, a second one would land on the NEXT page rather than repeat this one. BEFORE READING AN EMPTY DIFF AS A DEAD CONTROL, look for tab in the reply: it is there only when this tab was not in front, and state: "hidden" means Chrome had stopped painting it, so a popover could not render and nothing on an animation frame ran. Call qa_focus_tab and click again rather than filing anything. Requires the one-time “Agent control” confirmation in the panel; without it the extension answers consent-required and does nothing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "qa_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | A ref from qa_snapshot (e.g. "e12") — preferred over selector; unique where a selector is ambiguous | |
| name | No | Click the control with THIS accessible name — "Next", "Submit application", "Add member". Use it instead of a ref right after filling: a fill re-renders the page, which makes the ref you took before it stale (the extension refuses a stale ref rather than clicking the wrong thing). This resolves the name against a fresh snapshot, so it cannot go stale. | |
| role | No | Narrow a `name` match to one role, e.g. "button", "link", "tab", "radio" | |
| tabId | No | Target tab (from qa_tabs); omit for the active tab | |
| frameId | No | Which frame to ask, from qa_frames. Omit for the page itself. A payment form, an SSO step or an embedded widget usually lives in a frame of its own, and a cross-origin one can only be read from inside it. | |
| selector | No | CSS selector of the element to click |