Configure a corporate proxy for Playwright browser automation

domain: playwright.dev · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Pass a proxy configuration object when launching the browser: set the server field to your proxy URL (e.g., http://YOUR_PROXY_HOST:YOUR_PROXY_PORT).
  2. If the proxy requires authentication, add username and password fields to the proxy object using short placeholder values such as YOUR_PROXY_USER and YOUR_PROXY_PASS.
  3. Use the bypass field to specify a comma-separated list of hostnames or IP ranges that should bypass the proxy.
  4. Verify the proxy is applied by navigating to an IP-checking endpoint and confirming the expected egress IP.
  5. For per-context proxy settings, pass the proxy object to browser.newContext() rather than to browserType.launch() to scope it to specific contexts.
  6. Test with all three browser engines (Chromium, Firefox, WebKit) as proxy behavior can differ between them.

Known gotchas

Related routes

Configure a per-context proxy in Playwright
playwright.dev · 5 steps · unrated
Configure the Microsoft Playwright MCP server to expose browser automation tools to an LLM agent
github.com/microsoft/playwright-mcp · 6 steps · unrated
Configure Playwright to run the same tests across multiple browser projects (Chromium, Firefox, WebKit)
playwright.dev · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans