Chrome Flags Reference

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

--disable-gl-drawing-for-tests

What does --disable-gl-drawing-for-tests do?

Disables GL drawing operations which produce pixel output. With this the GL output will not be correct but tests will run faster.

Usage

CLILaunch Chrome with --disable-gl-drawing-for-tests using CLI

chrome --disable-gl-drawing-for-tests

PuppeteerLaunch Chrome with --disable-gl-drawing-for-tests using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-gl-drawing-for-tests']
});

PlaywrightLaunch Chrome with --disable-gl-drawing-for-tests using Playwright

const browser = await chromium.launch({
  args: ['--disable-gl-drawing-for-tests']
});

SeleniumLaunch Chrome with --disable-gl-drawing-for-tests using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-gl-drawing-for-tests')

driver = webdriver.Chrome(options=options)

Build Conditions

ENABLE_VULKAN && \