Chrome Flags Reference

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

--simulate-idle-timeout

What does --simulate-idle-timeout do?

Sets the IdleTimeout policy to a very short value (shorter than normally possible) for testing purposes.

Usage

CLILaunch Chrome with --simulate-idle-timeout using CLI

chrome --simulate-idle-timeout

PuppeteerLaunch Chrome with --simulate-idle-timeout using Puppeteer

const browser = await puppeteer.launch({
  args: ['--simulate-idle-timeout']
});

PlaywrightLaunch Chrome with --simulate-idle-timeout using Playwright

const browser = await chromium.launch({
  args: ['--simulate-idle-timeout']
});

SeleniumLaunch Chrome with --simulate-idle-timeout using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--simulate-idle-timeout')

driver = webdriver.Chrome(options=options)