{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: %s.",
            "Represents the iOS Landing Page Card.",
            "Verify the card and its components."
        ]
    },
    "implements": "utam-salesforceapp/pageObjects/offlineapp/landingPageCard",
    "platform": "native",
    "profile": [
        {
            "platform": [
                "ios_phone",
                "ios_tablet"
            ]
        }
    ],
    "type": [
        "clickable"
    ],
    "elements": [
        {
            "name": "actionList",
            "type": "utam-salesforceapp/pageObjects/offlineapp/landingPageActionList",
            "selector": {
                "accessid": "action_grid"
            }
        },
        {
            "name": "recordList",
            "type": "utam-salesforceapp/pageObjects/offlineapp/offlineRecordList",
            "selector": {
                "accessid": "list"
            }
        },
        {
            "name": "cardTitle",
            "selector": {
                "classchain": "**/XCUIElementTypeStaticText[`index == 0`]"
            }
        },
        {
            "name": "viewMoreButton",
            "nullable": true,
            "type": [
                "clickable"
            ],
            "selector": {
                "accessid": "view_more"
            }
        }
    ],
    "methods": [
        {
            "name": "viewMore",
            "compose": [
                {
                    "element": "viewMoreButton",
                    "apply": "click"
                }
            ]
        },
        {
            "name": "hasViewMoreButton",
            "compose": [
                {
                    "returnType": "boolean",
                    "element": "viewMoreButton",
                    "matcher": {
                        "type": "notNull"
                    }
                }
            ]
        },
        {
            "name": "getCardTitle",
            "compose": [
                {
                    "element": "cardTitle",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "getRecordList",
            "compose": [
                {
                    "apply": "waitFor",
                    "args": [
                        {
                            "type": "function",
                            "predicate": [
                                {
                                    "element": "recordList"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "name": "getActionList",
            "compose": [
                {
                    "apply": "waitFor",
                    "args": [
                        {
                            "type": "function",
                            "predicate": [
                                {
                                    "element": "actionList"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}