--auto-open-devtools-for-tabs
What does --auto-open-devtools-for-tabs do?
This flag makes Chrome auto-open DevTools window for each tab. It is intended to be used by developers and automation to not require user interaction for opening DevTools.
Usage
CLILaunch Chrome with --auto-open-devtools-for-tabs using CLI
chrome --auto-open-devtools-for-tabsPuppeteerLaunch Chrome with --auto-open-devtools-for-tabs using Puppeteer
const browser = await puppeteer.launch({
args: ['--auto-open-devtools-for-tabs']
});PlaywrightLaunch Chrome with --auto-open-devtools-for-tabs using Playwright
const browser = await chromium.launch({
args: ['--auto-open-devtools-for-tabs']
});SeleniumLaunch Chrome with --auto-open-devtools-for-tabs using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--auto-open-devtools-for-tabs')
driver = webdriver.Chrome(options=options)