Chrome Flags Reference

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

--webapk-server-url

What does --webapk-server-url do?

Custom WebAPK server URL for the sake of testing.

Usage

CLILaunch Chrome with --webapk-server-url using CLI

chrome --webapk-server-url

PuppeteerLaunch Chrome with --webapk-server-url using Puppeteer

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

PlaywrightLaunch Chrome with --webapk-server-url using Playwright

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

SeleniumLaunch Chrome with --webapk-server-url using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--webapk-server-url')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID!(CHROMEOS)MACWINCHROMEOS || IS_ANDROID