-
Notifications
You must be signed in to change notification settings - Fork 852
Labels
Description
Describe the bug
Currently, the snapshot tool does not capture content inside iframes.
I tested locally, and in McpContext.ts, adding includeIframes: true like this:
const rootNode = await page.accessibility.snapshot({
includeIframes: true,
});
correctly includes iframe content, and all actions work as expected. There might be some additional context that I’m missing, but this seems to resolve the issue in my local tests.
To Reproduce
Steps to reproduce the behavior:
- Open a webpage that contains at least one <iframe> (e.g. an embedded form or external widget).
- Run the snapshot tool to capture the accessibility tree.
- Inspect the generated snapshot.
- Notice that the iframe content is missing from the snapshot.
Expected behavior
A clear and concise description of what you expected to happen.
Chrome version:
Coding agent version:
Model version:
Screenshots
If applicable, add screenshots to help explain your problem.
Chat log
The full log of the chat with your coding agent.
Variel, blabla-yy, xusaihu and AlinaVarkki