MQTT General

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

Others → switch_to_frame

AI-generated

Summary

Publish a MQTT message to switch the context to a specific iframe or frame in a browser session managed via MQTT by sending the frame selector as part of the payload.

Inputs

  • Topic (required) — The MQTT topic to publish the switch to frame command to.
  • QoS — The MQTT Quality of Service level for message delivery.
  • Include Input Items — Whether to include selected fields from previous workflow input items in the payload under inputItems.
  • Include Input Items Fields — Fields from previous input items to include in the payload if Include Input Items is enabled.
  • Wait For Response — Whether to wait for a response message after publishing the switch command before returning node output.
  • Response Topic (required) — MQTT topic to listen on for a response if Wait For Response is enabled, defaulting to RES_.
  • Response Timeout (ms) — Maximum time in milliseconds to wait for a response message if enabled.
  • Parse Response As JSON — Whether the response payload should be parsed as JSON if waiting for response.
  • Frame — Selector for the frame to switch to, supports index, name, CSS selector, or default (e.g., 'index=0', 'name=frameName', 'css=iframe#id', or 'default').

Output shape

a list of items each containing the original input fields augmented with an mqtt property detailing the topic, action, and payload sent, and optionally including the response data if requested.

If Wait For Response is enabled, the node publishes the switch_to_frame action payload over the specified topic and subscribes to the given response topic, waiting up to the specified timeout for a reply. The response is parsed as JSON if configured. On failure or timeout, the node will error or return an error object if 'Continue On Fail' is enabled.

Links

Discussion