Chrome Flags Reference

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

--disable-webgl2

What does --disable-webgl2 do?

Disable WebGL2.

Usage

CLILaunch Chrome with --disable-webgl2 using CLI

chrome --disable-webgl2

PuppeteerLaunch Chrome with --disable-webgl2 using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-webgl2']
});

PlaywrightLaunch Chrome with --disable-webgl2 using Playwright

const browser = await chromium.launch({
  args: ['--disable-webgl2']
});

SeleniumLaunch Chrome with --disable-webgl2 using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-webgl2')

driver = webdriver.Chrome(options=options)