Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to trigger Har export on java project? #50

Open
PnmR opened this issue Jun 22, 2017 · 7 comments
Open

How to trigger Har export on java project? #50

PnmR opened this issue Jun 22, 2017 · 7 comments

Comments

@PnmR
Copy link

PnmR commented Jun 22, 2017

Hi!
Right now i have devtools.netmonitor.har.enableAutoExportToFile to true thus a new HAR file is created for every loaded page automatically but I am only interested on getting har file for specific http request or for a specific load page. I came across a script to trigger har export on javascript but how do we do it in java? Also I could not make the test page run : http://janodvarko.cz/har/tests/har-export-trigger/har-export-api.html
It simply gives ReferenceError: HAR is not defined . What am I missing?

@jimmy-ly00
Copy link

I am also getting the same error, I am wondering if it is because I am using Firefox 54

@jenniferdnn
Copy link

Hi, Any body still work on this project?

@janodvarko
Copy link
Member

All XUL-based or Add-on SDK based Firefox extensions are deprecated in favor of WebExtensions so, this little tool needs to be rewritten to a WebExtension.

I am planning to rewrite it, but it might take some time (there are other extensions waiting for the same) and so, anyone who's willing to jump in and help is welcome.

Honza

@janodvarko
Copy link
Member

Btw. the move to WebExtensions starts in Firefox 57 (Nightly these days)

Honza

@jenniferdnn
Copy link

jenniferdnn commented Aug 9, 2017 via email

@janodvarko
Copy link
Member

You might look at this MDN page:
https://developer.mozilla.org/cs/Add-ons/WebExtensions

Honza

@soulgalore
Copy link

I've made https://github.com/soulgalore/har-webextension as a POC just to see how different parts needs to communicate. What's missing for our use case (so we can build the rest of what's needed to mimic HAR export trigger) is a way to get the HAR without opening the devtools tab. It is crucial for us to be able to get it without opening the tab because we also record a video of the screen to be able to calculate firstVisualRender and SpeedIndex and then we cannot have anything popping up on the screen.

Best
Peter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants