{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: (card_name)_card.",
            "Represents a iOS mobile home card.",
            "Interact with the elements of the card."
        ]
    },
    "implements": "utam-salesforceapp/pageObjects/mcfmobilehome/mobileHomeCard",
    "platform": "native",
    "profile": [
        {
            "platform": [
                "ios_phone",
                "ios_tablet"
            ]
        }
    ],
    "exposeRootElement": true,
    "type": [
        "actionable",
        "touchable"
    ],
    "elements": [
        {
            "name": "addButton",
            "type": [
                "actionable",
                "clickable"
            ],
            "nullable": true,
            "selector": {
                "classchain": "**/XCUIElementTypeImage[`name ENDSWITH '_add_action_icon'`]"
            }
        },
        {
            "name": "body",
            "type": [
                "actionable"
            ],
            "nullable": true,
            "selector": {
                "classchain": "**/XCUIElementTypeOther[`name ENDSWITH '_body'`]"
            }
        },
        {
            "name": "chevronIcon",
            "type": [
                "actionable",
                "clickable"
            ],
            "selector": {
                "classchain": "**/XCUIElementTypeImage[`name ENDSWITH '_chevronIcon'`]"
            }
        },
        {
            "name": "editButton",
            "type": [
                "actionable",
                "clickable"
            ],
            "nullable": true,
            "selector": {
                "classchain": "**/XCUIElementTypeImage[`name ENDSWITH '_edit_action_icon'`]"
            }
        },
        {
            "name": "headerIcon",
            "type": [
                "actionable"
            ],
            "nullable": true,
            "selector": {
                "classchain": "**/XCUIElementTypeImage[`name ENDSWITH '_card_icon'`]"
            }
        },
        {
            "name": "recordIcons",
            "type": [
                "actionable"
            ],
            "public": true,
            "nullable": true,
            "selector": {
                "accessid": "row_icon",
                "returnAll": true
            }
        },
        {
            "name": "recordSubtitles",
            "type": [
                "actionable"
            ],
            "nullable": true,
            "selector": {
                "accessid": "subtitle",
                "returnAll": true
            }
        },
        {
            "name": "recordTitles",
            "type": [
                "actionable"
            ],
            "nullable": true,
            "selector": {
                "accessid": "title",
                "returnAll": true
            }
        },
        {
            "name": "title",
            "type": [
                "actionable",
                "clickable"
            ],
            "selector": {
                "classchain": "**/XCUIElementTypeStaticText[`name ENDSWITH '_title'`]"
            }
        }
    ],
    "methods": [
        {
            "name": "getRecordSubtitles",
            "compose": [
                {
                    "element": "recordSubtitles",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "getRecordTitles",
            "compose": [
                {
                    "element": "recordTitles",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "getTitle",
            "compose": [
                {
                    "element": "title",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "hasAddButton",
            "compose": [
                {
                    "element": "addButton",
                    "matcher": {
                        "type": "notNull"
                    },
                    "returnType": "boolean"
                }
            ]
        },
        {
            "name": "hasBody",
            "compose": [
                {
                    "element": "body",
                    "matcher": {
                        "type": "notNull"
                    },
                    "returnType": "boolean"
                }
            ]
        },
        {
            "name": "hasEditButton",
            "compose": [
                {
                    "element": "editButton",
                    "matcher": {
                        "type": "notNull"
                    },
                    "returnType": "boolean"
                }
            ]
        },
        {
            "name": "hasHeaderIcon",
            "compose": [
                {
                    "element": "headerIcon",
                    "matcher": {
                        "type": "notNull"
                    },
                    "returnType": "boolean"
                }
            ]
        },
        {
            "name": "toggleExpandCollapse",
            "compose": [
                {
                    "element": "chevronIcon",
                    "apply": "click"
                }
            ]
        }
    ]
}