Chrome Flags Reference

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

--disable-webgl

What does --disable-webgl do?

Disable all versions of WebGL.

Usage

CLILaunch Chrome with --disable-webgl using CLI

chrome --disable-webgl

PuppeteerLaunch Chrome with --disable-webgl using Puppeteer

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

PlaywrightLaunch Chrome with --disable-webgl using Playwright

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

SeleniumLaunch Chrome with --disable-webgl using Selenium

from selenium import webdriver

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

driver = webdriver.Chrome(options=options)