Remote Desktop Action icon

Remote Desktop Action

Execute or queue actions on a remote desktop

playwright.get_attribute

AI-generated

Summary

Retrieve an element's attribute via Playwright in a remote desktop session

Inputs

  • sessionId (required) — Session ID from a Session node; default expression: {{$json.session?.id || $json.session_id}}
  • selector — CSS selector for the target element
  • attribute — Attribute name to read (e.g., href, title, aria-label)
  • timeout — Maximum wait time in milliseconds (default: 30000)
  • mode — Execution mode: run (immediate) or build (queue for batch)

Output shape

When mode='run': the JSON response from the remote desktop API containing the attribute value. When mode='build': the original input JSON augmented with a queued_actions array that includes this action.

The exact structure of the API response depends on the remote desktop service; it will contain the result of the Playwright get_attribute call.

Examples

Example 1: Get the href attribute of a link

Session ID from prior node, selector='a.button', attribute='href', mode='run'

Discussion