Chrome launch arguments - berstend/puppeteer-extra GitHub Wiki
Overview
Chrome supports a variety of launch arguments/flags/switches, here are a few references:
- https://peter.sh/experiments/chromium-command-line-switches/
- https://github.com/GoogleChrome/chrome-launcher/blob/master/docs/chrome-flags-for-tools.md
- https://niek.github.io/chrome-features/
Tips
Review
- Navigate to
chrome://version
to see the effective launch arguments of the current Chrome browser
Improving larger scale automation
--no-zygote
: was a actually a solution to the zombie processes spawning in my puppeteer-cluster--no-xshm
: I had similar issues (running multiple concurrent Chrome in the same container) in the past that were resolved with this
Other
--window-position
: Hide while still being headful, useful when you can't use Xvfb.--window-position=-10000,10000