Chrome Flags Reference

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

--browser-ui-tests-verify-pixels

What does --browser-ui-tests-verify-pixels do?

Causes tests to attempt to verify pixel output.

Usage

CLILaunch Chrome with --browser-ui-tests-verify-pixels using CLI

chrome --browser-ui-tests-verify-pixels

PuppeteerLaunch Chrome with --browser-ui-tests-verify-pixels using Puppeteer

const browser = await puppeteer.launch({
  args: ['--browser-ui-tests-verify-pixels']
});

PlaywrightLaunch Chrome with --browser-ui-tests-verify-pixels using Playwright

const browser = await chromium.launch({
  args: ['--browser-ui-tests-verify-pixels']
});

SeleniumLaunch Chrome with --browser-ui-tests-verify-pixels using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--browser-ui-tests-verify-pixels')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK