--webrtc-event-logging
What does --webrtc-event-logging do?
Enable capture and local storage of WebRTC event logs without visiting chrome://webrtc-internals. This is useful for automated testing. It accepts the path to which the local logs would be stored. Disabling is not possible without restarting the browser and relaunching without this flag.
Usage
CLILaunch Chrome with --webrtc-event-logging using CLI
chrome --webrtc-event-loggingPuppeteerLaunch Chrome with --webrtc-event-logging using Puppeteer
const browser = await puppeteer.launch({
args: ['--webrtc-event-logging']
});PlaywrightLaunch Chrome with --webrtc-event-logging using Playwright
const browser = await chromium.launch({
args: ['--webrtc-event-logging']
});SeleniumLaunch Chrome with --webrtc-event-logging using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--webrtc-event-logging')
driver = webdriver.Chrome(options=options)Build Conditions
LOAD_WEBUI_FROM_DISK