mirror of
https://github.com/tester-army/e2e.git
synced 2026-12-04 04:56:00 +08:00
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@e2e-dev/browser-run
Cloudflare Browser Run hosted Chromium for e2e.
import { web } from '@e2e-dev/web';
import { browserRun } from '@e2e-dev/browser-run';
web({ browser: browserRun() });
Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN with
Browser Rendering - Edit permission in the run's environment. Use an app
URL reachable from Cloudflare. No Worker or vendor SDK is needed to connect.
scope defaults to worker, with a fresh context per attempt. attempt
leases a fresh browser per attempt and retry. keepAlive sets the inactivity
timeout in milliseconds, 10000 to 1200000, default 600000.
Sessions are deleted during teardown. If the runner exits before cleanup, the inactivity timeout ends the browser. Remote downloads and Cloudflare-native recording attachments are not implemented.
License
Apache-2.0