--browser-test
What does --browser-test do?
Browser test mode for the |kStartStackProfiler| switch. Limits the profile durations to be significantly less than the test timeout. On ChromeOS, forces the stack sampling profiler to run on all processes as well.
Usage
CLILaunch Chrome with --browser-test using CLI
chrome --browser-testPuppeteerLaunch Chrome with --browser-test using Puppeteer
const browser = await puppeteer.launch({
args: ['--browser-test']
});PlaywrightLaunch Chrome with --browser-test using Playwright
const browser = await chromium.launch({
args: ['--browser-test']
});SeleniumLaunch Chrome with --browser-test using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--browser-test')
driver = webdriver.Chrome(options=options)