【问题标题】:UI Automation + Mechanic.js: selector issueUI Automation + Mechanic.js:选择器问题
【发布时间】:2014-05-23 05:34:40
【问题描述】:

我正在使用带有 iOS UI 自动化的 Mechanic.js 框架。

我有一个取消UIBarButtonItem。当我这样做$("#Cancel").index() 时,结果是-1 找不到。我在这里错过了什么吗?澄清一下,$("#Cancel") 可以自行工作,但 .index() 无法检索到正确的索引。

【问题讨论】:

    标签: ui-automation ios-ui-automation


    【解决方案1】:

    这是因为 Apple 破坏了 UIAElements 上的相等操作(另请参见:this question),Mechanic.js 依靠它来计算找到的元素的索引。

    【讨论】:

      猜你喜欢
      • 2011-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-16
      • 2010-10-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多