Chrome Flags Reference

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

--load-webui-from-disk

What does --load-webui-from-disk do?

Flag used to load WebUI files directly from disk instead of pak files. Meant to be used during local development only (requires a local checkout and build), and only works if used along with the GN load_webui_from_disk=true GN flag.

Usage

CLILaunch Chrome with --load-webui-from-disk using CLI

chrome --load-webui-from-disk

PuppeteerLaunch Chrome with --load-webui-from-disk using Puppeteer

const browser = await puppeteer.launch({
  args: ['--load-webui-from-disk']
});

PlaywrightLaunch Chrome with --load-webui-from-disk using Playwright

const browser = await chromium.launch({
  args: ['--load-webui-from-disk']
});

SeleniumLaunch Chrome with --load-webui-from-disk using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--load-webui-from-disk')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK