【问题标题】:From where does target.logElementTree() retrieve information?target.logElementTree() 从哪里检索信息?
【发布时间】:2015-06-10 05:41:45
【问题描述】:

我实际上是想在应用程序的特定屏幕中列出所有可用控件,所以我想知道 target.logElementTree() 究竟从哪里检索信息?或者如何从视图控制器检索特定屏幕上可用的所有控件?

我在 Instruments 中使用 Xcode 6.3.2,UIAutomation。

感谢您抽出宝贵的时间来完成。

【问题讨论】:

    标签: instruments ios-ui-automation xcode-instruments


    【解决方案1】:

    目前,这是由 Instruments 中的一些私有代码提供的。

    要访问所有可用元素,请参阅Apple's documentation on UIAutomation,特别是the section on determining the element hierarchy

    【讨论】:

    • 我之前已经完成了,但找不到所以继续我的实现......
    猜你喜欢
    • 2021-01-19
    • 1970-01-01
    • 2011-12-10
    • 2017-08-15
    • 1970-01-01
    • 1970-01-01
    • 2013-11-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多