frame
Switch into an iframe to access and interact with its embedded elements, then return to the main page to continue automation.
Instructions
Move into or out of an iframe. Elements inside an iframe (embedded widgets, rich-text editors, payment fields) cannot be found by other tools until you switch into it. switch = enter a frame by selector, index, or nameOrId; parent = go up one level; default = return to the main page. The switch lasts until you change it again or a new page loads, so switch back with default when you are done inside the frame.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | For switch: zero-based position of the frame on the page. Used when no selector is given. | |
| action | Yes | switch = enter a frame (needs selector, index, or nameOrId); parent = up one level; default = back to the main page. | |
| nameOrId | No | For switch: the frame's name or id attribute. Used when neither selector nor index is given. | |
| selector | No | For switch: the <iframe> element, e.g. { by: 'css', value: 'iframe#editor' }. Most reliable way to pick a frame. | |
| timeoutMs | No | How long to wait for the frame element when switching by selector, in milliseconds (default 10000). |