Chrome Flags Reference

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

--field-trial-handle

What does --field-trial-handle do?

Handle to the shared memory segment containing field trial state that is to be shared between processes. The argument to this switch is made of segments separated by commas: - The platform-specific handle id for the shared memory as a string. - (Windows only) i=inherited by duplication or p=child must open parent. - The high 64 bits of the shared memory block GUID. - The low 64 bits of the shared memory block GUID. - The size of the shared memory segment as a string.

Usage

CLILaunch Chrome with --field-trial-handle using CLI

chrome --field-trial-handle

PuppeteerLaunch Chrome with --field-trial-handle using Puppeteer

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

PlaywrightLaunch Chrome with --field-trial-handle using Playwright

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

SeleniumLaunch Chrome with --field-trial-handle using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--field-trial-handle')

driver = webdriver.Chrome(options=options)