switch_to_frame
Focus automation on a specific frame or iframe inside an Internet Explorer window using its index, name, or element ID — only after targeting the IE window itself.
Instructions
Switch context into an iframe or frame inside an IE window. After switching, element finds are scoped to that frame's document. Provide exactly one of: index (0-based integer), name (frame name/id attribute), or elementId (element ID of the iframe element). Only supported in IE context (after switch_to_window targeting an IE window).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Frame name or id attribute | |
| index | No | 0-based frame index | |
| elementId | No | Element ID of an <iframe> or <frame> element (from find_element) |