The iOS API tap command
supports Views and subclasses of the UIView class. According to Apple's documentation
however, the UIBarButtonItem class does not inherit from UIView and that is why it can't be automated with the Mobile Testing framework.
However, if your UIBarButtonItem is inside another control that can be automated (UIToolBar for example), you can use the ios.tapSubviewAtIndex
API command to tap on the button. The example in the documentation demonstrates this approach. You can also verify that it works as expected if you run the toolbarSpec.js suite against our iOS demo project
Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform