--test-name
What does --test-name do?
Passes the name of the current running automated test to Chrome.
Usage
CLILaunch Chrome with --test-name using CLI
chrome --test-namePuppeteerLaunch Chrome with --test-name using Puppeteer
const browser = await puppeteer.launch({
args: ['--test-name']
});PlaywrightLaunch Chrome with --test-name using Playwright
const browser = await chromium.launch({
args: ['--test-name']
});SeleniumLaunch Chrome with --test-name using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--test-name')
driver = webdriver.Chrome(options=options)