繁体   English   中英

XCUiTests 应用程序层次结构是所有其他元素

[英]XCUiTests App Hierarchy is all Other Elements

    t =    72.34s Requesting snapshot of accessibility hierarchy for app with pid 84589
    t =    72.36s Requesting snapshot of accessibility hierarchy for app with pid 84589
▿ Optional<XCUIApplication>
  - some : Attributes: Application, pid: 84589, label: 'MyApp'
Element subtree:
 →Application, 0x600001ffa300, pid: 84589, label: 'MyApp'
    Window (Main), 0x600001ffa3e0, {{0.0, 0.0}, {390.0, 844.0}}
      Other, 0x600001ffa4c0, {{0.0, 0.0}, {390.0, 844.0}}
        Other, 0x600001ffa5a0, {{0.0, 0.0}, {390.0, 844.0}}
      Other, 0x600001ffa680, {{0.0, 0.0}, {390.0, 844.0}}
        Other, 0x600001ffa760, {{0.0, 0.0}, {390.0, 844.0}}
          Other, 0x600001ffa840, {{0.0, 0.0}, {390.0, 844.0}}
            Other, 0x600001ffa920, {{0.0, 0.0}, {390.0, 844.0}}
              Other, 0x600001ffaa00, {{0.0, 0.0}, {390.0, 844.0}}, identifier: 'tabBarControllerView'
Path to element:
 →Application, 0x600001ffa300, pid: 84589, label: 'MyApp'
Query chain:
 →Find: Target Application '...'
  Output: {
    Application, pid: 84589, label: 'MyApp'
  }

我的视图层次结构完全由其他元素组成,而它应该是 NavigationControllers 和 TabBarControllers。 知道这是为什么吗?

如果有帮助。 我们使用 Coordinator 模式来呈现 ViewControllers。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM