GREAT LOTUS icon

GREAT LOTUS

10 action groups: ManagerAction, MouseAction, KeyboardAction, BrowserControl, ElementAction, ImageAction, OthersAction, EmailAction, DeveloperAction, General Debug

7. Others → switch_to_frame

AI-generated

Summary

Publishes an MQTT request to switch the remote Playwright session into a selected iframe context, so later selectors run inside that frame. Optionally waits for a response and delays before continuing.

Inputs

  • Topic (required) — MQTT topic used to publish the request.
  • Remote Port (required) — CDP port used to route the action to the intended client session; defaults to the incoming remote_debugging_port value.
  • QoS — MQTT delivery quality level (0, 1, or 2); defaults to 1.
  • Include Input Items — When enabled, includes selected fields from incoming items in payload.inputItems; choose fields with dot paths or array indexes.
  • Wait For Response — When enabled, waits for the MQTT response before returning; defaults to false.
  • Response Timeout (sec) — Maximum response wait when waiting is enabled; defaults to 60 seconds.
  • Delay Next Step (ms) — Delay before continuing; defaults to rand(200,1000). Runs after the response if waiting is enabled, otherwise after publishing.
  • Frame — Frame selector passed in the action input, such as index=0, name=frameName, css=iframe#id, or default. Leaving it blank means no frame value is supplied.

Output shape

A single operation result item containing the MQTT response payload when a response is received; when waiting is disabled, the operation proceeds after publishing.

The operation sends the selected Frame value as an action input. The available source pack omits implementation bodies, so the precise response envelope and publish-only output fields are not shown.

Links

Discussion