{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: **/XCUIElementTypeOther[$type == 'XCUIElementTypeNavigationBar'$][-2].",
            "Represents the iOS 'Favorites' view controller.",
            "Start a search or interact with the existing list of favorites."
        ]
    },
    "implements": "utam-salesforceapp/pageObjects/record/favorite",
    "root": true,
    "platform": "native",
    "profile": [
        {
            "platform": [
                "ios_phone",
                "ios_tablet"
            ]
        }
    ],
    "beforeLoad": [
        {
            "apply": "waitFor",
            "args": [
                {
                    "type": "function",
                    "predicate": [
                        {
                            "element": "root",
                            "apply": "isPresent"
                        }
                    ]
                }
            ]
        }
    ],
    "selector": {
        "classchain": "**/XCUIElementTypeOther[$type == 'XCUIElementTypeNavigationBar'$][-2]"
    },
    "elements": [
        {
            "name": "favoriteSearchBar",
            "type": "utam-salesforceapp/pageObjects/record/favoriteSearchBar",
            "selector": {
                "classchain": "**/XCUIElementTypeOther[$type == 'XCUIElementTypeNavigationBar'$][1]"
            },
            "public": true
        },
        {
            "name": "favoriteList",
            "type": "utam-salesforceapp/pageObjects/record/favoriteList",
            "selector": {
                "classchain": "**/XCUIElementTypeTable[`name == 'favorites.tableview'`]"
            },
            "public": true
        }
    ]
}