Skip to content

Instantly share code, notes, and snippets.

@sandipchitale
Last active June 22, 2024 02:30
Show Gist options
  • Save sandipchitale/d8d54572e8b0c9659db65cc756df1498 to your computer and use it in GitHub Desktop.
Save sandipchitale/d8d54572e8b0c9659db65cc756df1498 to your computer and use it in GitHub Desktop.
Connect to desktop chrome #pupeteer

create a new chrome shortcut on your desktop and add --remote-debugging-port=9222 to the target. open it using the just created shortcut and go to http://127.0.0.1:9222/json/version

example: ws://127.0.0.1:9222/devtools/browser/1a59ad92-052d-4d44-b614-b6bf15999d10

Browser "Chrome/126.0.6478.114" Protocol-Version "1.3" User-Agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" V8-Version "12.6.228.19" WebKit-Version "537.36 (@044c187ce79bb8a266c5016ce749387a3480f81f)" webSocketDebuggerUrl "ws://127.0.0.1:9222/devtools/browser/1a59ad92-052d-4d44-b614-b6bf15999d10"

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