Actions63
- 1. Manager Actions
- 2. Mouse Actions
- 3. Keyboard Actions
- 4. Browser Control Actions
- 5. Element Actions
- 6. Image Actions
- 7. Others Actions
- 8. Email Actions
- 9. Developer Actions
- 10. General Debug Actions
5. Element → get_attribute
AI-generatedSummary
Publishes an MQTT request asking the remote Playwright session to read a named DOM attribute from a page element. Optionally waits for the response and returns it with the node’s output data.
Inputs
- Topic (required) — MQTT topic used to route the request.
- Remote Port (required) — CDP port identifying the client session; can be mapped from an upstream profile-opening node’s
remote_debugging_port. - QoS — MQTT delivery quality, from at most once (0) to exactly once (2).
- Target — Element selector, such as
css=button; may be left blank. - XPath — XPath selector for the element; may be left blank.
- Attribute (required) — Attribute name to read, such as
href,value, ordata-id. - Timeout (sec) — Maximum time to wait for the element action; defaults to 30 seconds.
- Include Input Items — When enabled, attaches selected upstream item fields under
payload.inputItems; field paths can include nested properties and array indexes. - Wait For Response — When enabled, waits for the MQTT response before producing output; otherwise the request is published without waiting.
- Response Timeout (sec) — Maximum wait for the MQTT response when waiting is enabled; defaults to 60 seconds.
- Delay Next Step (ms) — Delay before continuing, after the response if waiting or after publishing otherwise; supports expressions such as
rand(200,1000).
Output shape
A single output item containing the parsed response payload when waiting for a response; without waiting, output depends on the publish-only path.
The operation requests the attribute value from the selected page element. The supplied source is a signature-level view and omits the relevant method bodies, so the exact output fields and publish-only output shape are not visible.
