2

iPad アプリの UIAutomation テストに取り組んでいます。あるユーザーが他のユーザーとファイルを共有すると、APNS 通知が届きます。そこにある通知を確認し、それらの通知をタップする必要があります。私はこれについて多くの研究を行ってきましたが、成功することはできません。それを実装する方法はありますか?

4

1 に答える 1

0

title プロパティで区切ることができます。例:

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;
}
于 2015-01-30T13:39:52.403 に答える