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 → get_text

AI-generated

Summary

Reads the text content of a page element selected by a target selector or XPath, then returns the result in the node output for use by later workflow steps. Sends the request to the specified remote browser session over MQTT and can optionally wait for its response.

Inputs

  • Topic (required) — MQTT topic used to send the request to the client.
  • QoS — MQTT delivery level; defaults to 1 (at least once).
  • Include Input Items — When enabled, attaches selected fields from incoming items to the request payload.
  • Include Input Fields — Comma-separated fields to include when input items are enabled. Supports nested paths such as status.detail and array indexes such as order.items[0].sku.
  • Wait For Response — When enabled, waits for the MQTT response before returning; defaults to false.
  • Response Timeout (sec) — Maximum wait for a response when waiting is enabled; defaults to 60 seconds.
  • Delay Next Step (ms) — Delay before continuing after publish, or after receiving a response if waiting is enabled; defaults to rand(200,1000).
  • Remote Port (required) — CDP port used to route the request to the browser session. Defaults to the incoming item's remote_port; use 127001 for a local session.
  • Target — Element selector. Supports css=, id=, and text= prefixes; may be left blank if using XPath.
  • XPath — XPath for the element; may be left blank if using Target.
  • Timeout (sec) — Maximum time to find/read the element before reporting an error; defaults to 30 seconds.

Output shape

A node output containing the element's text when a response is received.

The operation-specific target and XPath fields are optional in the UI; the node sends them as action inputs. Whether output is returned immediately or after a response depends on Wait For Response.

Links

Discussion