Skip to content

Instantly share code, notes, and snippets.

@atomotic
Created April 13, 2017 15:21
Show Gist options
  • Save atomotic/ea426fce8865ad28478a9aaac160852f to your computer and use it in GitHub Desktop.
Save atomotic/ea426fce8865ad28478a9aaac160852f to your computer and use it in GitHub Desktop.
chrome headless: capture har and replay with webrecorderplayer
  1. install chrome-har-capture

     ~ npm install -g chrome-har-capturer
    
  2. install Chrome Canary

     ~ /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --remote-debugging-port=9222 --headless
    
  3. capture har

     ~ chrome-har-capturer -f -c -o rhizome.har http://rhizome.org
    
  4. install webrecorderplayer-electron and replay the har!

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