{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: UVMContainer.",
            "Represents the Android Landing page for the Offline App.",
            "Verify the components seen on Landing page."
        ]
    },
    "implements": "utam-salesforceapp/pageObjects/offlineapp/landingPage",
    "root": true,
    "exposeRootElement": true,
    "platform": "native",
    "profile": [
        {
            "platform": [
                "android_phone",
                "android_tablet"
            ]
        }
    ],
    "selector": {
        "uiautomator": "resourceId(\"UVMContainer\")"
    },
    "beforeLoad": [
        {
            "apply": "waitFor",
            "args": [
                {
                    "type": "function",
                    "predicate": [
                        {
                            "element": "root",
                            "apply": "isPresent"
                        },
                        {
                            "element": "root",
                            "apply": "containsElement",
                            "args": [
                                {
                                    "type": "locator",
                                    "value": {
                                        "uiautomator": "resourceId(\"briefcase_summary\")"
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "elements": [
        {
            "name": "cardWithName",
            "type": "utam-salesforceapp/pageObjects/offlineapp/landingPageCard",
            "selector": {
                "uiautomator": "resourceId(\"%s\")",
                "args": [
                    {
                        "name": "cardName",
                        "type": "string"
                    }
                ]
            },
            "public": true
        },
        {
            "name": "cards",
            "type": "utam-salesforceapp/pageObjects/offlineapp/landingPageCard",
            "public": true,
            "selector": {
                "uiautomator": "resourceIdMatches(\"card_.*\")",
                "returnAll": true
            }
        },
        {
            "name": "briefcaseSummary",
            "type": "utam-salesforceapp/pageObjects/offlineapp/briefcaseSummary",
            "public": true,
            "selector": {
                "uiautomator": "resourceId(\"briefcase_summary\")"
            }
        },
        {
            "name": "draftSummary",
            "type": "utam-salesforceapp/pageObjects/offlineapp/draftSummary",
            "public": true,
            "selector": {
                "uiautomator": "resourceId(\"draft_status\")"
            }
        }
    ],
    "methods": [
        {
            "name": "hasCardWithName",
            "compose": [
                {
                    "returnType": "boolean",
                    "element": "cardWithName",
                    "matcher": {
                        "type": "notNull"
                    }
                }
            ]
        },
        {
            "name": "hasDraftSummary",
            "compose": [
                {
                    "element": "root",
                    "apply": "containsElement",
                    "args": [
                        {
                            "type": "locator",
                            "value": {
                                "uiautomator": "resourceId(\"draft_status\")"
                            }
                        }
                    ]
                }
            ]
        }
    ]
}