pols browser
Control a sandbox's Chrome over the Chrome DevTools Protocol
Control a sandbox’s Chrome over the Chrome DevTools Protocol
Usage
pols browser [flags]
pols browser [command]
Subcommands
| Command | Description |
|---|---|
pols browser cdp |
Print a short-lived WebSocket URL for Playwright or Puppeteer |
Flags
-h, --help help for browser
pols browser cdp
Print a WebSocket URL for the Chrome DevTools Protocol endpoint of the Chrome on the sandbox’s desktop (started on first connect). Connect within 5 minutes; the URL grants access to that sandbox’s browser, so keep it secret.
Usage
pols browser cdp SANDBOX [flags]
Examples
pols browser cdp web
# Playwright: await chromium.connectOverCDP(url)
# Puppeteer: await puppeteer.connect({ browserWSEndpoint: url })
Flags
-h, --help help for cdp
The global flags work with this command too.