Closed thegreyfawkes closed 9 years ago
HAR export is now natively supported by Firefox, plus there is an extension HAR Export Trigger that makes the automation quite flexible. Please read this page: http://www.softwareishard.com/blog/har-export-trigger/
Does it work for you?
I am not planning to work on NetExport anymore. Its functionality should be fully replaced by native support + HAR Export Trigger extension and I am happy to fix any related issues of this new combo.
Honza
Hi, Hanza - thank you for replying!
This looks like it might work - I'll have to tinker my current script around it and see what I can do.
Is there a way to enable the HAR export trigger after I have already made the page visit a site and login? Essentially, I'm creating a Firefox profile with nothing but what I need loaded, but I only want to capture (and export) a single event that records a tracking pixel request.
I realize that this outside of the scope of this support question, but I figured I'd ask while I have you here. :)
I think it's valid requirement, but I don't think it's supported now. So, if I understand correctly, you don't wan't to export HAR after every page load, but only if special condition happens correct? But, it would be ok to have the extension installed and trigger the export only when needed, no?
Honza
That would be correct. I have no need to capture anything but the 3rd page loaded (which is to simulate a user searching for a product), which triggers a tracking pixel - I wish to generate a HAR for that search to verify a query string value equals what it is supposed to. I previously had this working in the old firebug/netexport setup, but realized that I was going to need to actually specify a file name in order to get it systematically uploaded to the online HAR viewer. And that's where I'm at now. :)
Quick question - is there a location that shows how the variables should be set up? The test page linked on the HAR Export Trigger site wasn't working for me, and I couldn't find any other example pages or sample script.
ok, please file a new report for me in har export issue list: https://github.com/firebug/har-export-trigger/issues (but, it might require change on the Fx platform)
The only example page I know about is: http://janodvarko.cz/har/tests/har-export-trigger/har-export-api.html
What doesn't work on the page? I'll fix it too. Please also file a report for it in the same issue list, so it's not forgotten.
Thanks! Honza
I am closing this one.
The focus is entirely going to HAR Export Trigger.
Honza
Hello,
I have been following this previous thread (https://github.com/firebug/netexport/issues/9#issuecomment-95105384) in attempting to name an exported HAR file to my Selenium/Java script that was previously working with Firebug 2.x that I was using before. Per the suggestions from the linked page above, I updated to the newest Firebug (3.0.0-alpha.130), and updated my code to point to this XPI. Looking in "about:config", I cannot find the defaultFileName extension. I confirmed within the plugin list that it is indeed using the newest Firebug.
Furthermore, after changing my code to the XPI name of the newest Firebug, no longer captures the HAR files as it did before. There simply is no record of the HAR files in either the assigned directory in the code, nor any previously used folder.
As a java beginner, I am confused how such a little change would break my ability to download the HAR files.
For reference, here is my code. Please let me know if I'm just making a stupid mistake or if I have actually encountered a bug!
_____-
}