Actions12
Browser → Press Key
AI-generatedSummary
Press a specified keyboard key on a web page, optionally focusing a specific element before the key press, using a Playwright-controlled browser session.
Inputs
- Connection Mode (required) — Select how Playwright connects to the browser, either launching a new browser or connecting over the Chrome DevTools Protocol (CDP).
- Browser Type — Choose Chromium, Firefox, or WebKit browser, only when launching a new browser.
- Headless — Run the browser in headless mode (no GUI), only applies when launching browser.
- CDP Endpoint — URL of the Chrome DevTools Protocol endpoint to connect to when using CDP mode.
- Timeout (MS) (required) — Maximum time in milliseconds to wait for browser actions like page navigation or key press.
- Session ID — ID to maintain or reuse the browser session and the page across multiple nodes.
- Use Existing Tab — Only with CDP mode: whether to reuse an existing browser tab instead of opening a new one.
- Tab Index — The zero-based index of the tab to reuse if "Use Existing Tab" is enabled.
- Block Resource Types — Resource types (e.g., images, scripts) to block loading to save bandwidth on new pages.
- Block URL Patterns — Comma-separated glob patterns of URLs for requests to block on new pages.
- Additional Data — Any optional JSON data to include in the node's output.
- Target URL — A web page URL to open before sending the key press (ignored on navigate and runScript operations).
- Key (required) — The keyboard key to press (for example, Enter, Tab, Escape, ArrowDown).
- Focus Selector — Optional CSS selector to focus (click) before pressing the key.
- After Execution (required) — Determine whether to close the browser, close only the page/tab, or keep the browser open after pressing the key.
Output shape
a list of JSON objects, one per input item processed
Each output includes operation details and success status. Includes pressed key and optionally the selector focused. Contains session info, URL of the current page, timestamps, and any additional data provided. Handles concurrency with session reuse, and error outputs are included when node is configured to continue on failure.