Execute Playwright/TypeScript code against the browser
Authorizations
Headers
Makes retrying the call safe. A call with a key already used on this browser returns the first call's response instead of running the code again, waiting for it if it is still running. A call with a key keeps running for 10 seconds after its last caller disconnects, so a retry can collect its response; after that it is cancelled like a call without a key. A response is kept for 10 minutes once the call finishes, and only the most recent responses are kept. A call rejected before the code runs, such as with 400, 409 or 429, does not use up its key. The Kernel SDKs send a key automatically and reuse it when they retry.
1 - 255Body
Request to execute Playwright code
TypeScript/JavaScript code to execute. The code has access to 'page', 'context', and 'browser' variables.
It runs within a function, so you can use a return statement at the end to return a value.
This value is returned as the result property in the response.
Example: "await page.goto('https://example.com'); return await page.title();"
Name of a Playwright executor. Calls with the same name run in the same executor, one at a time; the first call with a new name creates it. Calls on different executors run concurrently. 'default' names the executor that runs calls without a name.
^[A-Za-z0-9_-]{1,64}$"checkout"
Response
Code executed successfully
Result of Playwright code execution