Skip to main content
POST
Clipboard Paste

Overview

Pastes into the page by dispatching a native Ctrl+V keystroke (Cmd+V on macOS targets) against the session. If selector is provided the target element is focused first; otherwise the keystroke is delivered to whatever element is currently focused. If text is provided it is placed on the clipboard immediately before the paste event fires, so this endpoint can both set and paste in a single call.

Path Parameters

string
required
Browser session ID (UUID).

Body

string
CSS selector of the element to paste into. Defaults to the currently focused element.
string
Optional text to place on the clipboard right before pasting. Maximum 1 MiB.

Example Request

Response

Success Response (200)

boolean
True when the paste event was dispatched.
Example Response:

Error Responses