I'm using Mechanic.js framework with iOS UI Automation.
I have a cancel UIBarButtonItem. When I do this $("#Cancel").index(), the result is -1 which is not found. Am I missing something here? Just to clarify, $("#Cancel") does work by itself but .index() won't able to retrieve the right index.