Chrome Flags Reference

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

--mock

What does --mock do?

No description available for this flag.

Usage

CLILaunch Chrome with --mock using CLI

chrome --mock

PuppeteerLaunch Chrome with --mock using Puppeteer

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

PlaywrightLaunch Chrome with --mock using Playwright

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

SeleniumLaunch Chrome with --mock using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--mock')

driver = webdriver.Chrome(options=options)

Build Conditions

ENABLE_VULKAN && \