Hi Guys,
    Does netexport auto-export always work for you?

I am using java + selenium jar   with "netExport-0.9b3.xpi" and
"firebug-1.10.0.xpi";

I found
driver.get("http://www.google.com";) will create  har like 'www.google.com
+2013-01-29+20-26-02.har'
but
driver.get("file:///Users/me/tmp/tag0.html")
gets NO har dumped,  but I can see the page loaded in friefox.

here tag0.html source looks like:

*<html>
<body style='background-color: #f496a1;'>
<p>
<iframe name="iframe1" width="600" height="400" src="
http://en.wikipedia.org/wiki/"; frameborder="yes" scrolling="yes">
</iframe>
<p>
<textarea rows="20" cols="50" wrap="off"
id="hopstats">Empty</textarea></body>
</html>*


I tried to play with
profile.setPreference("extensions.firebug.netexport.pageLoadedTimeout",
                2000);

No luck at all, anybody seen such issue , any ideas?

Thanks,
Guo



On Sun, Jan 20, 2013 at 11:17 AM, Guo Li <[email protected]> wrote:

> Hi Guys,
>      I am new to netexport, can someone show an example  how to set it to
> auto-export in JSONP format?
> I  am using
>
> profile.addExtension(new File(
>                     "/Users/guo/netExport-0.9b3.xpi"));
> and it does have a save as jsonp option.
>
> Thanks,
> Guo
>
> On Monday, September 19, 2011 1:47:16 AM UTC-7, Cy Bercom wrote:
>>
>> Hello,
>>
>> I am not sure if this is the appropriate group for this question but I
>> am using Selenium and like to have automatic output from the Net tab
>> in firebug. I have installed net export and it works when I run FF
>> manually.
>>
>> But when I try the same thing when running FF from Selenium I get
>> nada. I checked with about:config and set the firebug and netexport
>> preferences marked as user defined.
>>
>> This is the C# code I am using:
>>
>> try
>>             {
>>                 textBox1.Text = "Starting Firefox.." +
>> Environment.NewLine;
>>
>>                 //Add firebug & netxport
>>
>>                 FirefoxProfile profile = new FirefoxProfile();
>>                 string firebugPath = "C:\\Mozilla plugins\
>> \firebug-1.8.2.xpi";
>>                 string netexportPath = "C:\\Mozilla plugins\
>> \netExport-0.8b17.xpi";
>>                 profile.AddExtension(**firebugPath);
>>                 profile.AddExtension(**netexportPath);
>>
>>
>> profile.SetPreference("**extensions.firebug.**currentVersion","1.8.2");
>> //
>> remove first run tab
>>                 //
>> profile.SetPreference("**extensions.firebug.**addonBarOpened", true);
>>
>> profile.SetPreference("**extensions.firebug.console.**enableSites",
>> true);
>>                 //
>> profile.SetPreference("**extensions.firebug.**allPagesActivation;on",
>> "on");
>>
>> profile.SetPreference("**extensions.firebug.**previousPlacement",1);
>>
>> profile.SetPreference("**extensions.firebug.**onByDefault",true);
>>
>> profile.SetPreference("**extensions.firebug.**defaultPanelName","net");
>>
>> profile.SetPreference("**extensions.firebug.net.**enableSites",true);
>>                 //
>> profile.SetPreference("**extensions.firebug.script.**enableSites",
>> true);
>>                 string output_dir =
>> Environment.GetFolderPath(**Environment.SpecialFolder.**MyDocuments);
>>                 output_dir = Path.Combine(output_dir,"**Firebug
>> netexports");
>>                 if (!Directory.Exists(output_dir)**)
>>                 {
>>                     Directory.CreateDirectory(**output_dir);
>>                 }
>>
>> profile.SetPreference("**extensions.firebug.netexport.**defaultLogDir",output_dir);
>>
>>
>> profile.SetPreference("**extensions.firebug.netexport.**alwaysEnableAutoExport",true);
>>
>>
>> profile.SetPreference("**extensions.firebug.netexport.**showPreview",
>> true); // preview
>>
>> profile.SetPreference("**extensions.firebug.netexport.**sendToConfirmation",
>>
>> false);
>>
>> profile.SetPreference("**extensions.firebug.netexport.**pageLoadedTimeout",
>>
>> 3000);
>>
>> profile.SetPreference("**extensions.firebug.netexport.**autoExportToFile",true);
>>
>>
>> profile.SetPreference("**extensions.firebug.netexport.**Automation",
>> true);
>>
>>                 System.Threading.Thread.Sleep(**5000); //allow firebug
>> to load
>>                 textBox1.AppendText("Added firebug extension and set
>> preferences" + Environment.NewLine);
>>                 textBox1.AppendText("Netexport output folder: " +
>> output_dir + Environment.NewLine);
>>
>>
>>                 IWebDriver driver = new
>> FirefoxDriver(profile);
>>                 //IWebDriver driver = new FirefoxDriver();
>>                 
>> driver.Navigate().GoToUrl("htt**p://www.dn.se<http://www.dn.se>");
>>
>>                 System.Threading.Thread.Sleep(**4000);
>>                 driver.FindElement(By.**LinkText("Ekonomi")).Click();
>>                 System.Threading.Thread.Sleep(**4000);
>>
>>
>>                 textBox1.AppendText("FÃĪrdigt")**;
>>                 driver.Quit();
>>             }
>>             catch (Exception exc)
>>             {
>>                 textBox1.Text = exc.ToString();
>>             }
>>
>>
>> Is there anyone that have this working? I am using the latest 6.x
>> version of FF.
>>
>> /Cy
>
>  --
> 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
> https://groups.google.com/forum/#!forum/firebug
>

-- 
-- 
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
https://groups.google.com/forum/#!forum/firebug

--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to