Skip to content

An example implementation of the remote-devtools-har module to gather HAR log entries from a seperate Google Chrome process

Notifications You must be signed in to change notification settings

glennschler/remote-devtools-harfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

remote-devtools-harfile

An example implementation of the remote-devtools-har module to gather HAR log entries from a seperate Google Chrome process.

Stream to file all the HAR entries emitted from remote-devtools-har. A better example would create a valid HAR file, not just these HTTP Archive (HAR) v1.2 entries.

Start Google Chrome with the default remote debugger port number, plus other possible command line arguments:

--remote-debugging-port=9222 \
--user-data-dir=$TMPDIR/chrome/tmp1 \
--no-default-browser-check \
--enable-net-benchmarking \
--no-first-run --no-proxy-server

Then start this example

On Windows optionally download the devToolsHarFile.exe contained in the latest Release instead of installing this repository and it's dependencies.

mkdir logs
node .

# optionally run the devToolsHarFile.exe
devToolsHarFile.exe

Navigate in the Chrome browser. Only the first tab will be captured. Review the ./logs/out.har file for all the HAR entries which were captured.

For reference:

About

An example implementation of the remote-devtools-har module to gather HAR log entries from a seperate Google Chrome process

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published