Remote Desktop Action icon

Remote Desktop Action

Execute or queue actions on a remote desktop

playwright.press_key

AI-generated

Summary

Press a specified key on a remote desktop session.

Inputs

  • mode — Run executes immediately, Build queues for batch execution
  • sessionId (required) — Session ID from a Session node
  • key — The key to press
  • selector — CSS selector targeting the element to receive the key press
  • delay — Delay in milliseconds before pressing the key

Output shape

An array of objects, each containing a json field with the API response and a pairedItem linking to the input item

When mode is 'run' the action executes immediately and returns the response; when mode is 'build' it adds a queued action and returns session info; errors are pushed as objects with error field if continueOnFail is enabled

Examples

Example 1: Press the Enter key on a newly opened browser tab

mode=run, sessionId={{ $json.session.id }}, key=Enter, selector=, delay=0

Example 2: Add a key press to a batch queue for later execution

mode=build, sessionId={{ $json.session_id }}, key=Escape, selector=, delay=500

Discussion