Description of the bug
IFrame handling seems to be inconsistent. I am able to pass a UUID of an iframe, or a child of, (take_snapshot does correctly return iframe and their children ⭐) to click and it works flawlessly. Passing it to evaluate_script on the other hand throws a "JSHandles can be evaluated only in the context they were created" error.
Reproduction
use evaluate_script with a uuid of an iframe, or a child of it.
Expectation
If a UUID from a snapshot works with click, it should work with evaluate_script.
Actual:
Using a UUID of an iframe, or a child of, throws "JSHandles can be evaluated only in the context they were created".. while it works with click
MCP configuration
No response
Node version
No response
Chrome version
No response
Coding agent version
No response
Model version
No response
Chat log
No response
Operating system
None
Extra checklist
Description of the bug
IFrame handling seems to be inconsistent. I am able to pass a UUID of an iframe, or a child of, (take_snapshot does correctly return iframe and their children ⭐) to
clickand it works flawlessly. Passing it toevaluate_scripton the other hand throws a"JSHandles can be evaluated only in the context they were created"error.Reproduction
use
evaluate_scriptwith a uuid of an iframe, or a child of it.Expectation
If a UUID from a snapshot works with
click, it should work withevaluate_script.Actual:
Using a UUID of an iframe, or a child of, throws "JSHandles can be evaluated only in the context they were created".. while it works with
clickMCP configuration
No response
Node version
No response
Chrome version
No response
Coding agent version
No response
Model version
No response
Chat log
No response
Operating system
None
Extra checklist