--log-net-log
What does --log-net-log do?
Enables saving net log events to a file. If a value is given, it used as the path the the file, otherwise the file is named netlog.json and placed in the user data directory.
Usage
CLILaunch Chrome with --log-net-log using CLI
chrome --log-net-logPuppeteerLaunch Chrome with --log-net-log using Puppeteer
const browser = await puppeteer.launch({
args: ['--log-net-log']
});PlaywrightLaunch Chrome with --log-net-log using Playwright
const browser = await chromium.launch({
args: ['--log-net-log']
});SeleniumLaunch Chrome with --log-net-log using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--log-net-log')
driver = webdriver.Chrome(options=options)