Browser Playwright
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.
post/browsers/{id}/playwright/execute
Path parameters
idstring required
Browser session ID
Request body
Response
Code executed successfully