Execute Playwright/TypeScript code against the browser
Execute arbitrary Playwright code in a fresh execution context against the browser.
The code runs in the same VM as the browser, minimizing latency and maximizing throughput.
It has access to ‘page’, ‘context’, and ‘browser’ variables.
It can return a value, and this value is returned in the response.
Documentation Index
Fetch the complete documentation index at: https://tbd-6fc993ce-hypeship-docs-chrome-policy-on-demand.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Browser session ID
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();"
Maximum execution time in seconds. Default is 60.
1 <= x <= 300Response
Code executed successfully