【问题标题】:Sending uia command "target.deactivateAppForDuration()" in calabash-ios consolre returns error message在 calabash-ios consolre 中发送 uia 命令“target.deactivateAppForDuration()”返回错误消息
【发布时间】:2015-09-23 13:59:50
【问题描述】:

我正在创建一些 iOS 自动化测试。当我调用 send_uia_command

:command => "target.deactivateAppForDuration(5)"

在 calabash-ios 控制台中,应用程序进入后台,在持续时间后台应用程序屏幕打开后,我收到以下错误:

  RuntimeError: uia action failed because: Input: target.deactivateAppForDuration(5)
 . Error: VerboseError: -[UIAElementNil _prepareForAction:]: unrecognized selector sent to instance 0x17676700  deactivateAppForDuration@[native code]
   eval code
   eval@[native code]

可能是什么问题?

更新:此错误仅在 iOS 9 上返回。

iOS 8.4.1 运行良好。

【问题讨论】:

    标签: ios calabash-ios uia


    【解决方案1】:

    请看Calabash iOS 0.16.3 release notes.

    简短的回答是 UIAutomation deactivateAppForDuration 在 iOS 9 上被破坏了。

    有一个雷达,我们是tracking this issue here

    报告 Calabash 问题时,请关注guide

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-17
      • 1970-01-01
      • 2016-10-24
      • 1970-01-01
      • 2014-12-31
      • 1970-01-01
      相关资源
      最近更新 更多