Skip to content

Instantly share code, notes, and snippets.

@gasparrobi
Last active March 25, 2024 09:23
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gasparrobi/d2d5be833e8828ad89013d2df4d657e3 to your computer and use it in GitHub Desktop.
Save gasparrobi/d2d5be833e8828ad89013d2df4d657e3 to your computer and use it in GitHub Desktop.
headless chrome from terminal in osX

1. set an alias for chrome:

alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"

2. To remote control your chrome headless:

chrome --headless --disable-gpu --remote-debugging-port=9222

@Mosallamy
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment