1

I am creating some iOS automation tests. When I call send_uia_command

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

in calabash-ios console, the app goes to background, after duration background app screen is opened and I get the following error:

  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]

What could be the issue?

Update: This error is returned only on iOS 9.

iOS 8.4.1 works fine.

Krumons
  • 61
  • 7

1 Answers1

0

Please see the Calabash iOS 0.16.3 release notes.

The short answer is that UIAutomation deactivateAppForDuration is broken on iOS 9.

There is a radar and we are tracking this issue here.

When reporting problems with Calabash, please follow this guide.

jmoody
  • 2,480
  • 1
  • 16
  • 22