--simulate-browsing-data-lifetime
What does --simulate-browsing-data-lifetime do?
Sets the BrowsingDataLifetime policy to a very short value (shorter than normally possible) for testing purposes.
Usage
CLILaunch Chrome with --simulate-browsing-data-lifetime using CLI
chrome --simulate-browsing-data-lifetimePuppeteerLaunch Chrome with --simulate-browsing-data-lifetime using Puppeteer
const browser = await puppeteer.launch({
args: ['--simulate-browsing-data-lifetime']
});PlaywrightLaunch Chrome with --simulate-browsing-data-lifetime using Playwright
const browser = await chromium.launch({
args: ['--simulate-browsing-data-lifetime']
});SeleniumLaunch Chrome with --simulate-browsing-data-lifetime using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--simulate-browsing-data-lifetime')
driver = webdriver.Chrome(options=options)