I am using firefox 43 with Selenium 2.51 and trying to run selenium webdriver tests and capture the har data using the inbuilt netmonitor options in firefox.
profile.setPreference(FirefoxProfile.ALLOWED_HOSTS_PREFERENCE, localHostAlias);
profile.setPreference("devtools.netmonitor.enabled", true);
profile.setPreference("devtools.netmonitor.har.compress", false);
profile.setPreference("devtools.netmonitor.har.defaultFileName", "HarOutputExport_%y%m%d_%H%M%S");
profile.setPreference("devtools.netmonitor.har.defaultLogDir", "D:\\SeleniumInstrumentationJars\\HarOutputDir");
profile.setPreference("devtools.netmonitor.har.enableAutoExportToFile", true);
profile.setPreference("devtools.netmonitor.har.forceExport", true);
profile.setPreference("devtools.netmonitor.har.includeResponseBodies", true);
profile.setPreference("devtools.netmonitor.har.jsonp", false);
profile.setPreference("devtools.netmonitor.har.jsonpCallback", false);
profile.setPreference("devtools.netmonitor.har.pageLoadedTimeout", "2500");
profile.setPreference("extensions.netmonitor.har.enableAutomation", true);
profile.setPreference("extensions.netmonitor.har.contentAPIToken", "test");
profile.setPreference("extensions.netmonitor.har.autoConnect", true);
I use the har export trigger extension to save the har file.
However, i am getting a multiple har files - one for each page navigated.... is there a way to generate only 1 har file with data pertaining to all the pages ?
Earlier I was using firebug + netexport plugins but they are too inconsistent with the data they generate, so ive stopped using those.
Please help..