Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--proxy-pac-url

What does --proxy-pac-url do?

Uses the pac script at the given URL

Usage

CLILaunch Chrome with --proxy-pac-url using CLI

chrome --proxy-pac-url

PuppeteerLaunch Chrome with --proxy-pac-url using Puppeteer

const browser = await puppeteer.launch({
  args: ['--proxy-pac-url']
});

PlaywrightLaunch Chrome with --proxy-pac-url using Playwright

const browser = await chromium.launch({
  args: ['--proxy-pac-url']
});

SeleniumLaunch Chrome with --proxy-pac-url using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--proxy-pac-url')

driver = webdriver.Chrome(options=options)