Feature Suggestion: DevTools/HAR-File through command line

640 views
Skip to first unread message

xresch

unread,
May 22, 2019, 10:15:05 AM5/22/19
to Chrome DevTools
Hi everyone,

I would like to suggest a new feature for Chrome/DevTools for analysis automation.

Background
Around a year ago I started to build an open source project called Page Analyzer.
The description of this project can be found here:

We use the page analyzer to monitor the performance of the web applications we are analyzing for other project teams.
Now we would like to extend the application in order to generate HTTP Archive(HAR) files for applications that are only accessible through Kerberos.

Issue
There are several solutions on the market which allow to create HAR files, running as web applications or as a service.
But most of them do not support an easy way to do this with Kerberos applications. Or the solution will get really complicated in the end.

Solution
I have already played arround with headless chrome, what seems a quite useful for getting the DOM of a webpage or creating PDF files:
https://developers.google.com/web/updates/2017/04/headless-chrome

If there would be a flag to dump a .har-File to stdout or to the disk, this would make it very easy to create the solution I'm lokking for, as I also can do the neccessary settings for Kerberos on the command line that I need.

Also such a feature could get really handy for other purposes, like analysis and reporting in a build automation tool like jenkins or TeamCity.
Surely there are other features of the DevTools that would be useful to have through the command line.
Also from what I found it would currently be the only solution that would provide this capability in such an easy way.

Cheers
Reto





161...@nec.edu.in

unread,
Jun 15, 2020, 2:54:34 AM6/15/20
to Chrome DevTools
Is this feature now available or any other way of automizing HAR generation

Yang Guo

unread,
Jun 15, 2020, 3:01:00 AM6/15/20
to Google Chrome Developer Tools, Mathias Bynens
+Mathias Bynens maybe this is possible or will be possible with Puppeteer?

Yang

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/93109bb7-878d-4d58-9561-b6fdf3a813c4n%40googlegroups.com.

Mathias Bynens

unread,
Jun 15, 2020, 3:03:03 AM6/15/20
to google-chrome-...@googlegroups.com
Puppeteer doesn’t have built-in support for exporting HAR files, but there’s a userland plugin that makes this very easy in combination with Puppeteer: https://github.com/Everettss/puppeteer-har

Reply all
Reply to author
Forward
0 new messages