Chrome Flags Reference

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

--diagnostics-recovery

What does --diagnostics-recovery do?

Tells the diagnostics mode to do the requested recovery step(s).

Usage

CLILaunch Chrome with --diagnostics-recovery using CLI

chrome --diagnostics-recovery

PuppeteerLaunch Chrome with --diagnostics-recovery using Puppeteer

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

PlaywrightLaunch Chrome with --diagnostics-recovery using Playwright

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

SeleniumLaunch Chrome with --diagnostics-recovery using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--diagnostics-recovery')

driver = webdriver.Chrome(options=options)