selenium - What is difference between getting adb logcats from appium by `getAll()` and `filter(Level.ALL)`
问题描述
Can anyone differentiate between
List<LogEntry> logEntries = driver.manage().logs().get("logcat").getAll();
andList<LogEntry> logEntries2 = driver.manage().logs().get("logcat").filter(Level.ALL);
Actually my need to is to clear logEntries
after performed any click action on my app. Then i ran adb logcat -c
command to clear those and again called List<LogEntry> logEntries = driver.manage().logs().get("logcat").getAll();
ideally it should give fresh logs as per i have cleared logs by adb logcat -c
, but it doesn't. Then i performed List<LogEntry> logEntries2 = driver.manage().logs().get("logcat").filter(Level.ALL);
which is giving the fresh data after successful execution of adb logcat -c
. So can anyone differentiate.
解决方案
推荐阅读
- jupyter-notebook - 如何在 Jupyter 笔记本中使用 PlotylyJS 和 Julia 生成交互式绘图?
- python - 如何用自定义的“字符串”重命名 x 标签?
- sql - MySQL:如何选择所有产品已支付的所有购物车
- xcode - 上传构建时 App Store 捆绑无效错误
- laravel - 无法通过`echo`访问Blade中的belongsTo关系,但可以通过`dd`
- mysql - 如何修复mysql更新某些表不存在
- php - PHP setcookie 工作但不是在所有目录中
- timezone - 如何防止 mariadb 在重启时重置时区?
- postgresql - PostgreSQL - tcp_keepalives_idle - 需要解释
- asp.net-mvc - 如何在 ASP.NET MVC 项目中更好地实现二级登录