--proxy-server
What does --proxy-server do?
Uses a specified proxy server, overrides system settings.
Usage
CLILaunch Chrome with --proxy-server using CLI
chrome --proxy-serverPuppeteerLaunch Chrome with --proxy-server using Puppeteer
const browser = await puppeteer.launch({
args: ['--proxy-server']
});PlaywrightLaunch Chrome with --proxy-server using Playwright
const browser = await chromium.launch({
args: ['--proxy-server']
});SeleniumLaunch Chrome with --proxy-server using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--proxy-server')
driver = webdriver.Chrome(options=options)