--- id: "f62cacd7-b4b7-46a4-8ae2-d59efa193e2f" name: "iframe_target() CDP session switch" micro_summary: "iframe_target() creates a CDP session but does not switch js() or extract_text() into that frame; target-specific js() is needed." status: "discarded" see_also: [] scope: "Use browser-harness iframe_target() to switch CDP execution context to SCORM iframe" discard_reason: "Creates session but doesn't change CDP execution context" --- Creates a new CDP session but js() and extract_text() still execute in the parent page's CDP context. The iframe_target() helper returns a targetId but doesn't change where subsequent Runtime.evaluate calls execute. Use js(..., target_id=...) instead for actual context switching.