GREAT LOTUS PYAUTO WEB icon

GREAT LOTUS PYAUTO WEB

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

5. Element → wait_element

AI-generated

Summary

Waits for a selected browser element to reach a requested state by publishing a request to the configured MQTT topic and remote browser session. Use it before a click or typing action to synchronize with page rendering, or wait for a loading element to disappear.

Inputs

  • Topic (required) — MQTT topic used to route the request to the client.
  • QoS — MQTT delivery quality level; defaults to 1.
  • Remote Port (required) — CDP port used to route the command to the browser session; defaults from remote_port in the input item.
  • Target — Element selector; supports css=, id=, and text= prefixes. May be left blank if unused.
  • XPath — XPath selector for the element. May be left blank if unused.
  • Wait Type — State to wait for: present, visible, editable, or their not ... counterparts. Defaults to present.
  • Timeout (sec) — Maximum wait time before an error; defaults to 30 seconds.
  • Include Input Items — When enabled, attaches selected fields from incoming items as payload.inputItems.
  • Include Input Fields — Comma-separated field paths to include when input items are enabled; supports nested paths and array indexes.
  • Wait For Response — When enabled, waits for the MQTT response before returning; response timeout defaults to 60 seconds.
  • Response Timeout (sec) — Maximum time to wait for the MQTT response when response waiting is enabled.
  • Delay Next Step (ms) — Delay after receiving the response, or after publishing if response waiting is disabled; defaults to rand(200,1000).

Output shape

A single result item per input item, subject to response-wait settings.

The node sends the wait request to the MQTT client. With Wait For Response disabled, it proceeds after publishing; when enabled, it waits up to the response timeout. The operation-scoped source excerpt does not show the exact returned result fields.

Links

Discussion