豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Snapshot does not capture Iframe content #186

@aramvr

Description

@aramvr

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:

  1. Open a webpage that contains at least one <iframe> (e.g. an embedded form or external widget).
  2. Run the snapshot tool to capture the accessibility tree.
  3. Inspect the generated snapshot.
  4. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions