Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent logging for FirefoxDriver?

I have WebDriver 2.41 and Firefox 28 and when my test creates instance of FirefoxDriver I see the following strings in console:

*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: checkForChanges 
.................

How I can turn off this logging?

like image 537
user1590561 Avatar asked Nov 11 '22 09:11

user1590561


1 Answers

Your Firefox version is upgraded which is not supported by Selenium. So downgrade to version 28. It will work fine.

You can download the required version of firefox from here:

To stop updating the firefox automatically, uninstall the Mozilla Maintenance Service ( in Windows) & in Tools -> Options -> Advanced -> Updates Tab, disable 'updates checking for addons & firefox'

Best,

Anton

like image 186
Anton Angelov Avatar answered Nov 26 '22 23:11

Anton Angelov