Skip to content

Chrome Extension to Facilitate getting HAR dump from chrome

Notifications You must be signed in to change notification settings

netproteus/getHAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getHAR

Chrome Extension to Facilitate getting HAR dump from chrome

The initial purpose of this plugin was an attempt to automate the extraction of har file from chrome devtools when driving chrome from selenium webdriver Unfortunately this proved to be impossible because chrome dev tools can not be opened when using webdriver because of limitations in the artictecture of the remote deugging protocol

This plugin does work if you have another basis for automatically extracting har file, however this was really a proof of concept rather than anything polished. I hope you can improve it for something useful.

Steps

  • Ensure dev tools are open (the data lives within dev tools it can't be recreated for data fetched before opening it)
    • There is a chrome command line flag for opening devtool by default
  • document.dispatchEvent(new Event('getHAR'))
  • document.getElementById('har_dump').innerHTML

About

Chrome Extension to Facilitate getting HAR dump from chrome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published