I will try, but according to Selenium site FF35 still not supported, just Firefox 24, 31, 32 and 33 supported
window.NetExport.trigger("secretcode") is working with Firebug 3 and Firefox 37.Tried it today - the options seems to have changed to
"extensions.firebug@software.joehewitt.com.allPagesActivation""extensions.firebug@software.joehewitt.com.netexport.alwaysEnableAutoExport"
I isolated the code.And tested without proxy and I can generate HAR files.I tested with proxy server (setting the preferences in the FirefoxDriver through profile), with this I can't generate HAR files.This is a bug ?
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)
Screenshot of firebug when using Selenium:
Can you have a look at it?
Many thx!
Yui
// Set default Firefox preferences
profile.setPreference("app.update.enabled", false);
domain = "extension...@software.joehewitt.com.";
// 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);