On Dec 22, 8:22 am, paneer_tikka <[email protected]> wrote: > Hi, > We want to achieve the following with firebug: > 1. Load a test page with firebug activated. > 2. The test runs (triggered by JS running in the jquery document.ready > hook). > 3. At the end of the test, we need to collect data from the Net panel > (preferably the "har" json string that is generated by the NetExport > extension) and inject it into the dom of the test page (say in a > "netpanel" div). > > Not sure if it is relevant, but the browser instance is triggered > using Watir web driver. > My question is - > 1. Is there a way for the test page to "enable firebug along with the > net panel" using some JS api? Or for that matter to configure firefox > to always open it? In order to enable Firebug for all sites you need to set allPagesActivation preference. To enabled the Net panel you need to set net.enableSites, see: http://getfirebug.com/wiki/index.php/Preferences So, you could set these by default in your Firefox test profile.
> 2. Is there any way to tap into the data gathered by the net panel > (ala NetExport extension) from the javascript running on the test > page? Yes, you could use Firebug API in case the page has proper privileges (e.g. UniversalXPConnect privileges enabled) See e.g.: http://www.mozilla.org/projects/security/components/per-file.html http://www.mozilla.org/projects/security/components/signed-scripts.html Of course another way would be to create a Firebug/NetExport extension that gets the HAR data generated by NetExport. Honza > Regards, > > Neeraj -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
