Hi,

Getting right into it: 

I'm using Firefox 14.0.1, Firebug 1.9.2, netExport 0.8b2, and fireStarter 
0.1a6 on a headless VirtualMachine (Ubuntu Lucid) with Python2.7, Selenium 
2.25.0  Webdriver.Firefox().

Here's a cleaned-up, simple sample: 

profile = webdriver.FirefoxProfile()
> try:
> profile.add_extension(extension="/confirmed/path/to/firebug-1.10.3-fx.xpi")
> profile.add_extension(extension="/confirmed/path/to/netExport-0.8b22.xpi")
> profile.add_extension(extension="/confirmed/path/to/fireStarter-0.1a6.xpi")
> except Exception, e:
> print e
>
 

# Firefox prefs
> profile.set_preference("app.update.auto", False)  
> profile.set_preference("app.update.enabled", False)  
> profile.set_preference("browser.search.update", False)  
> profile.set_preference("extensions.logging.enabled", True)  
> profile.set_preference("extensions.update.enabled", False)  
> profile.set_preference("javascript.options.showInConsole", True)  
> profile.set_preference("webdriver.log.file", "/path/to/results/dir/")
>
 

# Set default Firebug preferences
> profile.set_preference("extensions.firebug.currentVersion", "2.0")
> profile.set_preference("extensions.firebug.allPagesActivation", "on")
> profile.set_preference("extensions.firebug.defaultPanelName", "net")
> profile.set_preference("extensions.firebug.net.enabledSites", True)
>
> # Set default NetExport preferences
> profile.set_preference("extensions.firebug.netexport.alwaysEnableAutoExport", 
> True) 
> profile.set_preference("extensions.firebug.netexport.autoExportToFile", 
> True) 
> profile.set_preference("extensions.firebug.netexport.showPreview", False)
> profile.set_preference("extensions.firebug.netexport.defaultLogDir", 
> "/path/to/results/dir/")
> profile.update_preferences()
>
 

        browser = webdriver.Firefox(firefox_profile=profile) # assign 
> profile to browser
>
 

try:
> # force sleep, let FF load up.... 
> time.sleep(sleepCount)
>
 

browser.get(url)
>
 

# let HAR export
> time.sleep(sleepCount)
> firebug_token = browser.execute_script("return 
> document.getUserData('firebug-Token');")
> print "Just checking if firebug is there >> %s" % firebug_token
>
> except Exception, e:
> print e
> raise


I've tried setting "sleepCount" timeout ranging from 10s to 30s without 
success. 

As far as I can detect, Firebug is active. I do this by sending some js to 
the browser and get the token back.

I haven't yet figured out a way to determine if NetExport it active via JS 
or CLI (for security reasons I imagine). 

The log files exported don't help much either.


Any ideas would be wonderful!

Thanks in advance,

Telly



-- 
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

Reply via email to