I am using calabash cucumber to test my iphone app. In my app i am using system level alert dialog for enabling current location. I need to identify whether there is any alert dialogs displayed on the screen. But i am not able to identify the system level alert dialog. I tried below script. but not working.
query("view:'UIAlertView'",:message)
element_exists("alertView child label marked:'#{message}'")
please help me. I need to click on "OK" button in the dialog.