我有 WebDriver 2.41 和 Firefox 28,当我的测试创建 FirefoxDriver 实例时,我在控制台中看到以下字符串:
*** 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
.................
如何关闭此日志记录?
最佳答案
您的 Firefox 版本已升级,但 Selenium 不支持。所以降级到版本 28。它会正常工作。
您可以从这里下载所需的 Firefox 版本:
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'
最好的事物,
安东
关于selenium-webdriver - 如何防止 FirefoxDriver 的日志记录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23244580/