Execute Playwright/TypeScript code against the browser
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Browser session ID or name
Body
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"
Maximum execution time in seconds. Default is 60.
1 <= x <= 300Response
Code executed successfully
Result of Playwright code execution
Whether the code executed successfully
Error message if execution failed
The value returned by the code (if any)
Standard error from the execution
Standard output from the execution
The tab 'page' was bound to for this call. Absent if the call failed before binding a tab.