Skip to content

fix: route frame control presses through their owning page - #4691

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4669
Oct 29, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4669

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The coordinate-based press helper introduced by #3772 sent input through its document argument, but a Playwright Frame has no mouse or touchscreen. The helper now uses the frame's owning page for input while keeping the locator scoped to the child document. Bounding boxes already use main-viewport coordinates, preserving the visible-control route that avoids Chromium 156's preparatory scrolling.

Both affected inspection tests reproduce the AttributeError before the change and pass after it, verifying child-document arrival and the manual diagnostics-copy route. The selected top-level inspection and small-screen map mouse/touch cases also pass: 5 cases total. Ruff and Python compilation pass.

Closes #4669 — automated triage

Keep the coordinate-based press introduced in #3772 to avoid Chromium 156's preparatory scroll, but use Frame.page for pointer and touch input. Locator bounding boxes already use the main viewport, so child control selection stays in its document without translating coordinates.

Both affected inspection tests fail with AttributeError before the change and pass after it. The focused top-level inspection and small-screen map mouse/touch cases also pass (5 cases total).

Closes #4669
@leaf-agent
leaf-agent merged commit bf505bd into main Oct 29, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4669 branch October 29, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sample inspection helper calls mouse on a Playwright Frame

1 participant