Chrome Flags Reference

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

--use-fake-ui-for-fedcm

What does --use-fake-ui-for-fedcm do?

Bypass the FedCM account selection dialog. If a value is provided for this switch, that account ID is selected, otherwise the first account is chosen.

Usage

CLILaunch Chrome with --use-fake-ui-for-fedcm using CLI

chrome --use-fake-ui-for-fedcm

PuppeteerLaunch Chrome with --use-fake-ui-for-fedcm using Puppeteer

const browser = await puppeteer.launch({
  args: ['--use-fake-ui-for-fedcm']
});

PlaywrightLaunch Chrome with --use-fake-ui-for-fedcm using Playwright

const browser = await chromium.launch({
  args: ['--use-fake-ui-for-fedcm']
});

SeleniumLaunch Chrome with --use-fake-ui-for-fedcm using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--use-fake-ui-for-fedcm')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK