And here is some of my code:

        // Set default Firefox preferences

        profile.setPreference("app.update.enabled", false);

       domain = "[email protected].";            

       // Set default Firebug preferences       

        profile.setPreference(domain + "allPagesActivation", "on");

        profile.setPreference(domain + "netexport.alwaysEnableAutoExport", 
true);

        profile.setPreference(domain + "netexport.showPreview", false);

        profile.setPreference(domain + "netexport.autoExportToFile", true);

        profile.setPreference(domain + "netexport.saveFiles", true);

        profile.setPreference(domain + "netexport.defaultLogDir", 
"~/project/har");

        profile.setPreference("devtools.toolbox.selectedTool", "netmonitor"); 
//The net panel is selected by default

        profile.setPreference("devtools.netmonitor.enabled", true);  //Net 
panel is enabled by default

        //set the file name

        Date date = calendar.getTime(); //the date of history page you want 
to get

        DateFormat format = new SimpleDateFormat("yyyyMMdd");

        String dateStr=format.format(date);

        String fileName=websiteName+"+"+dateStr;

        profile.setPreference(domain + "netexport.defaultFileName", 
fileName);

在 2015年4月26日星期日 UTC+8上午12:35:24,[email protected]写道:
>
> Hi Honza,
> When I want to generate the har file of https://archive.org/, which is a 
> library of history of millions of website pages, there are always some 
> errors. I use firebug-3.0.0-alpha.12.xpi+FF foa mac 37.0.2.
> 1. When I generated the har files manually, the files cannot be analyzed 
> by the HAR archive viewer, no matter the home page ( https://archive.org/ 
> ) or the specific history pages I want to query. eg: 
> https://web.archive.org/web/20150425114317/https://www.yahoo.com/
>
>
> <https://lh3.googleusercontent.com/-oECv1JPqrQY/VTuyJsNhluI/AAAAAAAAAAc/qjZR5Juh4EE/s1600/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%2B2015-04-25%2B%E4%B8%8B%E5%8D%8810.48.42.png>
>
> 2. When I use Selenium + FF +  firebug-3.0.0-alpha.12.xpi to generate har 
> files automatically, the UI looks different and the output of the home 
> page, archive.org, cannot be analyzed by the viewer, either. More worse, 
> no har file was generated for any history pages. eg: 
> https://web.archive.org/web/20070802094218/http://www.google.com/
>
> Here is the screenshot of firebug without Selenium (I have try to turn it 
> into an English version, but I don't know how and finally can only provide 
> a Chinese version. I hope you can understand what I mean) 
>
>
>
> <https://lh3.googleusercontent.com/-zigtwkDrqd0/VTu-yOhN5qI/AAAAAAAAAAs/A9m6eYtg-vA/s1600/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%2B2015-04-25%2B%E4%B8%8B%E5%8D%8810.48.58.png>
>
> Screenshot of firebug when using Selenium:
>
>
> <https://lh3.googleusercontent.com/-oMMFo797P0A/VTvBTk_P-DI/AAAAAAAAAA4/9CwFBjQSRDE/s1600/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%2B2015-04-25%2B%E4%B8%8B%E5%8D%8811.49.07.png>
>
>
>
> <https://lh3.googleusercontent.com/-laErWsaNMoQ/VTvB9x3-R6I/AAAAAAAAABA/73eOxzrvKFw/s1600/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%2B2015-04-26%2B%E4%B8%8A%E5%8D%8812.15.15.png>
>
> Can you have a look at it?
>
> Many thx!
>
> Yui
>
>
>   
>
> 在 2015年2月18日星期三 UTC+8上午12:19:59,Jan Honza Odvarko写道:
>>
>> Firebug 3 alpha 9 has been released:
>> https://github.com/firebug/firebug.next/releases/tag/firebug-3.0.0-alpha.9
>>
>> This version includes support for automated (and also manual)
>> HAR export. The logic has been ported from NetExport extension.
>>
>> 1. All preferences and logic remains the same.
>> 2. The testing combo should be Firefox Nightly + Firebug 3 alpha 9 
>>
>> The main difference is that the Toolbox UI (and so, the Network panel)
>> can't be currently opened yet before the first browser tab is loaded.
>>
>> So, here is what you need to do in case of auto-export (driven e.g. by 
>> Selenium)
>>
>> 1) The first browser tab opened by default should be about:blank
>> You can set it in the preferences -> General -> When Nightly starts: show 
>> a blank page
>> (or set Home page to: about:blank)
>> 2) Set 'extensions.firebug.allPagesActivation' to 'on' (string)
>> 3) Set 'extensions.firebug.netexport.alwaysEnableAutoExport' to 'true' 
>> (boolean)
>> 4) Start loading test case pages.
>>
>> Of course there are other prefs you can set (the same as you used to use).
>>
>> I mostly need feedback at this moment.
>>
>> What doesn't work for you?
>>
>> Please report any issues in our issue list here:
>> https://github.com/firebug/firebug.next/issues
>>
>> Honza
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/firebug/310244b9-e021-4016-899f-4b5e41ab4381%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to