selenium-webdriver - 如何防止 FirefoxDriver 的日志记录?

标签 selenium-webdriver webdriver selenium-firefoxdriver

我有 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/

相关文章:

java - 无法使用 selenium webdriver 获取元素文本

apache - 无法解析 Log4j-core 2.3 上的 BasicConfigurator 类

java - 从标签 <font color ="red"> 读取文本并通过控制台打印

c# - geckodriver.exe 不在当前目录或路径变量中,Selenium 2.53.1 + Firefox 48 + Selenium 3 Beta

Java Selenium - 无法使用 Chrome 和 Firefox 访问警报

firefox - selenium-firefox-driver 2.25.0 在 Firefox 15 上不能正常工作

javascript - 实习生 : Checking for Elements that Shouldn't Exist

java - 检查类中是否存在 ng-hide

python - Selenium webdriver - 可以找到元素但不可见?

java - 如何通过Selenium和Java处理以下动态ID?