GREAT LOTUS PYAUTO WEB icon

GREAT LOTUS PYAUTO WEB

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

9. Developer → get_iframe_code

AI-generated

Summary

Publishes an MQTT request to retrieve the HTML source of an iframe by its index, without switching into the iframe first. Set the target worker’s Remote Port and optionally choose an index; the operation can also include selected incoming fields, wait for a response, and delay before continuing.

Inputs

  • Topic (required) — MQTT topic used to route the request to the client.
  • QoS — MQTT delivery quality level; defaults to 1.
  • Include Input Items — When enabled, attaches incoming data to payload.inputItems. Optionally specify which fields to include.
  • Include Input Fields — Comma-separated input field paths to attach when Include Input Items is enabled; supports nested paths and array indexes.
  • Wait For Response — When enabled, waits for the MQTT response before returning; defaults to false.
  • Response Timeout (sec) — Maximum response wait time when waiting is enabled; defaults to 60 seconds.
  • Delay Next Step (ms) — Delay before continuing. Runs after the response when waiting is enabled, or after publishing otherwise; defaults to rand(200,1000).
  • Remote Port (required) — CDP port used to route the request to the intended browser session. Typically mapped from the profile-opening node’s remote_port; 127001 denotes a local session.
  • Index — Zero-based iframe index to retrieve; defaults to 0. Supports an expression such as {{$json.frame_index}}.

Output shape

An MQTT request is published; optionally returns after receiving a response.

The operation-specific properties identify the response as iframe HTML, but the supplied source excerpt does not show the response payload structure. With Wait For Response disabled, the node continues after publishing; when enabled, it waits up to the configured timeout.

Links

Discussion