Honza, can you help out here?
Sebastian
On Tuesday, December 16, 2014 10:20:24 AM UTC+1, Arie Hoenel wrote:
>
> Hi
>
> I'm trying during Selenium tests to export net console to Har file.
> My configuration is: FF 34.0.5 + Firebug 2.0.7 + netExport-0.9b6
>
> here my code:
>
> FirefoxProfile profile = new FirefoxProfile();
>
> if (cleanHarFile()) {
> File firebug = new File(System.getProperty("user.dir") +
> "/src/test/resources/firebug-2.0.7.xpi");
> File netExport = new File(System.getProperty("user.dir") +
> "/src/test/resources/netExport-0.9b6.xpi");
>
> try {
> profile.addExtension(firebug);
> profile.addExtension(netExport);
> } catch (IOException e) {
> e.printStackTrace();
> }
>
> profile.setPreference("app.update.enabled", false);
>
> //Setting Firebug preferences
> profile.setPreference("extensions.firebug.currentVersion",
> "2.0.7");
> profile.setPreference("extensions.firebug.addonBarOpened", true);
> profile.setPreference("extensions.firebug.console.enableSites",
> true);
> profile.setPreference("extensions.firebug.script.enableSites",
> true);
> profile.setPreference("extensions.firebug.net.enableSites", true);
> profile.setPreference("extensions.firebug.previousPlacement", 1);
> profile.setPreference("extensions.firebug.allPagesActivation",
> "on");
> profile.setPreference("extensions.firebug.onByDefault", true);
> profile.setPreference("extensions.firebug.defaultPanelName",
> "net");
> profile.setPreference("extensions.firebug.netFilterCategories",
> "image");
> profile.setPreference("extensions.firebug.net.logLimit", "3000");
>
>
> // Setting netExport preferences
>
> profile.setPreference("extensions.firebug.netexport.alwaysEnableAutoExport",
> true);
> profile.setPreference("extensions.firebug.netexport.showPreview",
> false);
>
> profile.setPreference("extensions.firebug.netexport.pageLoadedTimeout", 0);
> profile.setPreference("extensions.firebug.netexport.secretToken",
> "harFile");
>
> profile.setPreference("extensions.firebug.netexport.defaultLogDir",
> HARFILEDIR);
> profile.setPreference("extensions.firebug.netexport.saveFiles",
> true);
>
>
> during my test I'm calling
>
>
> js.executeScript("window.NetExport.triggerExport(\"harFile\")");
>
>
> but NO Har file is saved and getting: TypeError: window.NetExport is undefined
>
>
> Can some one help me ?
>
>
> Thanks
>
>
--
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/86fb2d7c-1c82-4c80-b2ed-52e3ec3078b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.