Chrome Flags Reference

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

--test-gl-lib

What does --test-gl-lib do?

Flag used for Linux tests: for desktop GL bindings, try to load this GL library first, but fall back to regular library if loading fails.

Usage

CLILaunch Chrome with --test-gl-lib using CLI

chrome --test-gl-lib

PuppeteerLaunch Chrome with --test-gl-lib using Puppeteer

const browser = await puppeteer.launch({
  args: ['--test-gl-lib']
});

PlaywrightLaunch Chrome with --test-gl-lib using Playwright

const browser = await chromium.launch({
  args: ['--test-gl-lib']
});

SeleniumLaunch Chrome with --test-gl-lib using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--test-gl-lib')

driver = webdriver.Chrome(options=options)

Build Conditions

ENABLE_VULKAN && \