--clear-token-service
What does --clear-token-service do?
Command line switches, sorted by name. Clears the token service before using it. This allows simulating the expiration of credentials during testing.
Usage
CLILaunch Chrome with --clear-token-service using CLI
chrome --clear-token-servicePuppeteerLaunch Chrome with --clear-token-service using Puppeteer
const browser = await puppeteer.launch({
args: ['--clear-token-service']
});PlaywrightLaunch Chrome with --clear-token-service using Playwright
const browser = await chromium.launch({
args: ['--clear-token-service']
});SeleniumLaunch Chrome with --clear-token-service using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--clear-token-service')
driver = webdriver.Chrome(options=options)