Chrome Flags Reference

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

--message-loop-type-ui

What does --message-loop-type-ui do?

Indicates the utility process should run with a message loop type of UI.

Usage

CLILaunch Chrome with --message-loop-type-ui using CLI

chrome --message-loop-type-ui

PuppeteerLaunch Chrome with --message-loop-type-ui using Puppeteer

const browser = await puppeteer.launch({
  args: ['--message-loop-type-ui']
});

PlaywrightLaunch Chrome with --message-loop-type-ui using Playwright

const browser = await chromium.launch({
  args: ['--message-loop-type-ui']
});

SeleniumLaunch Chrome with --message-loop-type-ui using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--message-loop-type-ui')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK