Remote Desktop Action icon

Remote Desktop Action

Execute or queue actions on a remote desktop

playwright.type

AI-generated

Summary

Types text into a selected element using Playwright via a remote desktop session.

Inputs

  • mode — Execution mode: 'run' to perform the action immediately and return the result, or 'build' to add the action to a queue for later batch execution. Default: 'run'.
  • sessionId (required) — The ID of the remote desktop session obtained from a Session node.
  • selector — CSS selector of the element to type into.
  • text — The text string to type into the selected element.
  • delay — Delay in milliseconds between each keystroke. Default: 0.
  • timeout — Maximum time in milliseconds to wait for the selector to become available. Default: 30000.

Output shape

conditional on mode

When mode is 'run', the node returns the JSON response from the POST /sessions/:sessionId/run endpoint (the result of the Playwright type action). When mode is 'build', the node returns an object containing the session ID, an updated queued_actions array (with the new action appended), and a queued_count reflecting the total number of queued actions.

Examples

Example 1: Immediate execution

mode: run, selector: '#username', text: 'alice@example.com' (sessionId from previous Session node). Output: API response indicating the type action succeeded.

Example 2: Batch queuing

mode: build, selector: '#password', text: 'secret123', delay: 50 (sessionId from Session node). Output: { session_id: '...', queued_actions: [{ action: 'playwright.type', params: { selector: '#password', text: 'secret123', delay: 50, timeout: 30000 } }], queued_count: 1 }

Discussion