GREAT LOTUS PYAUTO WEB icon

GREAT LOTUS PYAUTO WEB

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

7. Others → switch_to_default

AI-generated

Summary

Publish an MQTT request that returns the browser session to its default page context after switching into an iframe or popup. Route the request using the required Remote Port; optionally attach selected input fields, wait for a response, and delay the next step.

Inputs

  • Topic (required) — MQTT topic used to route the request to a client.
  • QoS — MQTT delivery level; defaults to 1 (at least once).
  • Include Input Items — When enabled, adds selected fields from incoming items to payload.inputItems; defaults to false.
  • Include Input Fields — Comma-separated field paths to include, supporting nested paths and array indexes. Used when Include Input Items is enabled.
  • Wait For Response — Whether to wait for the MQTT response before returning output; defaults to false.
  • Response Timeout (sec) — Maximum response wait in seconds when waiting is enabled; defaults to 60.
  • Delay Next Step (ms) — Delay before continuing. Defaults to rand(200,1000); runs after the response when waiting, otherwise after publishing.
  • Remote Port (required) — CDP port used to route the command to the correct worker session. Defaults to {{$json.remote_port}}; use 127001 for a local session.

Output shape

A single result per request, with output behavior dependent on whether a response is awaited.

The operation publishes an MQTT request to switch back to the default page context. Input fields are only attached when enabled. The properties and supplied source view do not show the exact response or output item schema.

Links

Discussion