Chrome Flags Reference

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

--force-browser-crash-on-gpu-crash

What does --force-browser-crash-on-gpu-crash do?

Crash Chrome if GPU process crashes. This is to force a test to fail when GPU process crashes unexpectedly.

Usage

CLILaunch Chrome with --force-browser-crash-on-gpu-crash using CLI

chrome --force-browser-crash-on-gpu-crash

PuppeteerLaunch Chrome with --force-browser-crash-on-gpu-crash using Puppeteer

const browser = await puppeteer.launch({
  args: ['--force-browser-crash-on-gpu-crash']
});

PlaywrightLaunch Chrome with --force-browser-crash-on-gpu-crash using Playwright

const browser = await chromium.launch({
  args: ['--force-browser-crash-on-gpu-crash']
});

SeleniumLaunch Chrome with --force-browser-crash-on-gpu-crash using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--force-browser-crash-on-gpu-crash')

driver = webdriver.Chrome(options=options)