firefox driver "webdriver.log.file" system property is ignored (no log file created)

227 views
Skip to first unread message

Bartosz Kaczorek

unread,
Apr 14, 2015, 5:13:35 AM4/14/15
to seleniu...@googlegroups.com
Hi,

I am trying dump javascript console logging to file when using firefox and selenium standalone server. I was trying to follow official wiki page and added "webdriver.log.file" system property when starting selenium server i.e.:

java -jar selenium-server-standalone.jar -Dwebdriver.log.file=C:\myfile.log

After running selenium standalone server I lunch my tests (using javascript intern framework) - the tests are running fine, but the problem is that no log file is created and the "webdriver.log.file"  system property seems to be ignored.

I was able to get log file for firefox stdout/stderr using "webdriver.firefox.logfile" property, and I was also successful with chrome log files using "webdriver.chrome.logfile" and "webdriver.chrome.verboseLogging" system properties, but still for some reason no luck with "webdriver.log.file". Can you help?

Wiki page I was following:

My environemnt details are:
Firefox version: 37.0.1
Selenium standalone server version: 2.45.0
Platform: Windows 7

Thanks,
Bart

brandon garlock

unread,
Apr 14, 2015, 9:34:06 PM4/14/15
to seleniu...@googlegroups.com
I had this requirement before and remember running into a problem getting the console log from firefox into a file. I ended up setting up a complicated system of Firebug+console export plugins similar to what is described in this stack overflow-http://stackoverflow.com/questions/23231931/getting-console-log-output-from-firefox-with-selenium .

I would be interested if anyone else has had luck getting the console output on Firefox in a more elegant way.
Reply all
Reply to author
Forward
0 new messages