--autoplay-policy
What does --autoplay-policy do?
Command line flag name to set the autoplay policy.
Usage
CLILaunch Chrome with --autoplay-policy using CLI
chrome --autoplay-policyPuppeteerLaunch Chrome with --autoplay-policy using Puppeteer
const browser = await puppeteer.launch({
args: ['--autoplay-policy']
});PlaywrightLaunch Chrome with --autoplay-policy using Playwright
const browser = await chromium.launch({
args: ['--autoplay-policy']
});SeleniumLaunch Chrome with --autoplay-policy using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--autoplay-policy')
driver = webdriver.Chrome(options=options)