--ensure-forced-color-profile
What does --ensure-forced-color-profile do?
Crash the browser at startup if the display's color profile does not match the forced color profile. This is necessary on Mac because Chrome's pixel output is always subject to the color conversion performed by the operating system. On all other platforms, this is a no-op.
Usage
CLILaunch Chrome with --ensure-forced-color-profile using CLI
chrome --ensure-forced-color-profilePuppeteerLaunch Chrome with --ensure-forced-color-profile using Puppeteer
const browser = await puppeteer.launch({
args: ['--ensure-forced-color-profile']
});PlaywrightLaunch Chrome with --ensure-forced-color-profile using Playwright
const browser = await chromium.launch({
args: ['--ensure-forced-color-profile']
});SeleniumLaunch Chrome with --ensure-forced-color-profile using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--ensure-forced-color-profile')
driver = webdriver.Chrome(options=options)