feat(aria-snapshot): add boxes option to include bounding boxes#40389
feat(aria-snapshot): add boxes option to include bounding boxes#40389pavelfeldman merged 1 commit intomicrosoft:mainfrom
Conversation
Adds `boxes: true` to `Page.ariaSnapshot` / `Locator.ariaSnapshot`, which appends `[box=x,y,width,height]` to each node. Also exposes it as `boxes` in the `browser_snapshot` MCP tool and `--boxes` on the `playwright-cli snapshot` command.
Test results for "tests 1"5 flaky41354 passed, 847 skipped Merge workflow run. |
Test results for "MCP"42 failed 6569 passed, 916 skipped Merge workflow run. |
Summary
boxes: truetoPage.ariaSnapshot/Locator.ariaSnapshot, appending[box=x,y,width,height]to each node.boxesin thebrowser_snapshotMCP tool and--boxesonplaywright-cli snapshot.