【问题标题】:UIautomator do not display classname while identifying object for appiumUIautomator在识别appium对象时不显示类名
【发布时间】:2019-03-22 23:54:59
【问题描述】:

我在捕获对象时尝试使用 uiautomatorviewer 识别 Android 自动化对象,我发现对象类名称未显示。

请查看以下版本详细信息:

  • Appium:1.9.1
  • 设备或模拟器:两者都有
  • 桌面操作系统:mac
  • Android 操作系统:API 级别 26 Android 8(模拟器)和 Android 7.0
  • 应用建立在:RN ^0.57.1​​

请找到所附图片以供参考。

【问题讨论】:

    标签: appium appium-android android-uiautomator


    【解决方案1】:

    Android 操作系统:API 级别 26 Android 8(模拟器)和 Android 7.0

    如果您在 Android 6+ 上使用 Appium,那么您使用的是 UIAutomation2 并且必须使用 Appium-Desktop 进行元素检查

    UIAutomatorviewer 无论如何都不是好的选择,因为 UIAutomation 和 UIAutomation2 中的 XML 表示可能不同

    【讨论】:

    猜你喜欢
    • 2019-11-03
    • 2017-11-28
    • 2014-10-24
    • 1970-01-01
    • 1970-01-01
    • 2015-05-15
    • 2020-03-05
    • 2018-07-21
    • 2021-04-01
    相关资源
    最近更新 更多