--dom-automation
What does --dom-automation do?
Specifies if the |DOMAutomationController| needs to be bound in the renderer. This binding happens on per-frame basis and hence can potentially be a performance bottleneck. One should only enable it when automating dom based tests.
Usage
CLILaunch Chrome with --dom-automation using CLI
chrome --dom-automationPuppeteerLaunch Chrome with --dom-automation using Puppeteer
const browser = await puppeteer.launch({
args: ['--dom-automation']
});PlaywrightLaunch Chrome with --dom-automation using Playwright
const browser = await chromium.launch({
args: ['--dom-automation']
});SeleniumLaunch Chrome with --dom-automation using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--dom-automation')
driver = webdriver.Chrome(options=options)