webdriver/firebug/netexport works on local but not on ubuntu

185 views
Skip to first unread message

Victor Chan

unread,
Aug 29, 2014, 10:54:26 AM8/29/14
to fir...@googlegroups.com
Hi,

I am writing a piece of code to capture the traffic of a specific link.
and it works perfectly on my local mac.

Here is my preference code:

val profile = new FirefoxProfile()

profile
.addExtension(firebugFile)
val
FBDomain = "extensions.firebug."
profile
.setPreference(s"${FBDomain}currentVersion", "2.0.3")
profile
.setPreference(s"${FBDomain}allPagesActivation", "on")
profile
.setPreference(s"${FBDomain}defaultPanelName", "net")
profile
.setPreference(s"${FBDomain}net.enableSites", true)

profile
.addExtension(netExportFile)
val
NEDomin = "netexport."

profile
.setPreference(s"${FBDomain}${NEDomin}defaultLogDir", logDir.getCanonicalPath)
profile
.setPreference(s"${FBDomain}${NEDomin}alwaysEnableAutoExport", true)
profile
.setPreference(s"${FBDomain}${NEDomin}showPreview", false)
profile
.setPreference(s"${FBDomain}${NEDomin}autoExportToFile", true)
profile
.setPreference(s"${FBDomain}${NEDomin}saveFiles", true)

//firefox preference
profile
.setPreference("app.update.enable", false)

System.setProperty("webdriver.firefox.logfile", s"${firefoxLogDir.getCanonicalPath}/FFError.log")
System.setProperty("webdriver.logfile", s"${firefoxLogDir.getCanonicalPath}/FFjsConsole.log")

new FireFoxDriver(profile)




However, when I deploy it to my QA box which is ubuntu 12.04.3 LTS, HAR stopped being produced.

Here's my specific:
Selenium-java 2.42.2
Firefox 29 ( was Firefox 31 on my laptop)
Firebug 2.0.3
netExport 0.9b6

I use xvfb-run to allow headless browser to run
The only Firefox error to capture after I supplied the webdriver.firefox.log:
==========================================
Xlib:  extension "RANDR" missing on display ":98".
*** LOG addons.xpi: startup
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous9058616010009053829webdriver-profile/extensions/webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found

(firefox:17859): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Error spawning command line `dbus-launch --autolaunch=3c2808eefd0e7456cb17e781000000c3 --binary-syntax --close-stderr': Failed to execute child process "dbus-launch" (No such file or directory)
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
Xlib:  extension "RANDR" missi*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
Xlib:  extension "RANDR" missing on display ":98".
JavaScript error: , line 0: Permission denied to access property 'toString'
============================================

Can any shed some light out?

many thanks!
Victor
Reply all
Reply to author
Forward
0 new messages