switch_frame
Switch to an iframe, parent frame, or default document to interact with elements inside frames. Specify the target and use a selector or frame index when needed.
Instructions
Switch execution context to an iframe, parent frame, or default document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Frame target to switch to | |
| selector | No | Selector of iframe element (when target is "element") | |
| strategy | No | Strategy to find element. Default: css | css |
| frameIndex | No | Index of the frame (when target is "index") |