page.frame_switch
Switch the working context to an iframe. Exactly one parameter required.Python only: the TypeScript SDK has no equivalent.
str | None
CSS selector for the iframe element (uses content_frame()).Default:
Nonestr | None
Frame name attribute.Default:
Noneint | None
Frame index in page.frames list (0 = main frame).Default:
Nonedict[str, Any] — Dict with frame name, url, and the parameter used to switch.
Example
page.frame_main
Switch back to the main page frame, clearing the working iframe.Python only: the TypeScript SDK has no equivalent.
dict[str, str]
Example
page.frame_list
List all frames on the current page.Python only: the TypeScript SDK has no equivalent.
list[dict[str, Any]] — List of dicts with name, url, is_main, and index for each frame.
Example

