{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: resourceId(\"com.salesforce.chatter:id/drawer_layout\").",
            "Represents the Android 'All Lists' drawer layout of an object.",
            "Find a record by label, and get its title or navigate to it."
        ]
    },
    "implements": "utam-salesforceapp/pageObjects/record/objectAllLists",
    "platform": "native",
    "profile": [
        {
            "platform": [
                "android_phone",
                "android_tablet"
            ]
        }
    ],
    "exposeRootElement": true,
    "type": [
        "actionable",
        "touchable"
    ],
    "root": true,
    "beforeLoad": [
        {
            "apply": "waitFor",
            "args": [
                {
                    "type": "function",
                    "predicate": [
                        {
                            "element": "root",
                            "apply": "isPresent"
                        }
                    ]
                }
            ]
        }
    ],
    "selector": {
        "uiautomator": "resourceId(\"com.salesforce.chatter:id/drawer_layout\")"
    },
    "elements": [
        {
            "name": "visibleListCells",
            "public": true,
            "type": [
                "clickable",
                "actionable"
            ],
            "selector": {
                "uiautomator": "resourceId(\"com.salesforce.chatter:id/object_list_label\")",
                "returnAll": true
            }
        },
        {
            "name": "listByLabel",
            "type": [
                "clickable",
                "actionable"
            ],
            "nullable": true,
            "selector": {
                "uiautomator": "new UiScrollable(new UiSelector().scrollable(true)).scrollIntoView(resourceId(\"com.salesforce.chatter:id/object_list_label\").text(\"%s\"))",
                "args": [
                    {
                        "name": "label",
                        "type": "string"
                    }
                ]
            }
        },
        {
            "name": "searchBar",
            "type": "utam-salesforceapp/pageObjects/navigation/searchBar",
            "public": true,
            "selector": {
                "uiautomator": "resourceId(\"com.salesforce.chatter:id/all_lists_ptr\")"
            }
        },
        {
            "name": "visibleListWithLabel",
            "type": [
                "clickable",
                "actionable"
            ],
            "public": true,
            "nullable": true,
            "selector": {
                "uiautomator": "resourceId(\"com.salesforce.chatter:id/object_list_label\").text(\"%s\")",
                "args": [
                    {
                        "name": "label",
                        "type": "string"
                    }
                ]
            }
        }
    ],
    "methods": [
        {
            "name": "hasListCell",
            "compose": [
                {
                    "returnType": "boolean",
                    "element": "listByLabel",
                    "matcher": {
                        "type": "notNull"
                    }
                }
            ]
        },
        {
            "name": "clickListCellWithLabel",
            "compose": [
                {
                    "element": "listByLabel",
                    "apply": "click"
                }
            ]
        }
    ]
}