2

내 iPad 앱의 UIAutomation 테스트를하고 있습니다. 한 사용자가 다른 사용자와 파일을 공유 할 때 APNS 알림이 수신됩니다. 알림이 무엇인지보고 그 알림을 탭해야합니다. 나는 이것에 대한 많은 연구를 해왔지만 성공할 수 없다. 그것을 구현할 방법이 있습니까?액세스 UIAutomation 테스트의 APNS 알림 iOS

답변

0

제목 속성별로 구분할 수 있습니다. 예 :

UIATarget.onAlert = function onAlert(alert) { 
    var title = alert.name(); 

    //check by title, which alert is. 

    // test if your script should handle the alert, and if so, return true 
    // otherwise, return false to use the default handler 
    return false; 
}