{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: **/XCUIElementTypeWindow[$name == 'view.AppLauncher'$].",
            "Represents the iOS 'App Launcher' modal.",
            "Start a search or interact with the existing list of apps."
        ]
    },
    "implements": "utam-salesforceapp/pageObjects/navigation/appLauncherNav",
    "root": true,
    "platform": "native",
    "profile": [
        {
            "platform": [
                "ios_phone",
                "ios_tablet"
            ]
        }
    ],
    "selector": {
        "classchain": "**/XCUIElementTypeWindow[$name == 'view.AppLauncher'$]"
    },
    "beforeLoad": [
        {
            "apply": "waitFor",
            "args": [
                {
                    "type": "function",
                    "predicate": [
                        {
                            "element": "root",
                            "apply": "containsElement",
                            "args": [
                                {
                                    "type": "locator",
                                    "value": {
                                        "classchain": "**/XCUIElementTypeStaticText[`name == 'label.appName' AND visible == true`]"
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "elements": [
        {
            "name": "searchBar",
            "type": "utam-salesforceapp/pageObjects/navigation/searchBar",
            "selector": {
                "accessid": "nav.AppLauncher"
            },
            "public": true
        },
        {
            "name": "appItemsList",
            "type": "utam-salesforceapp/pageObjects/navigation/appItemsList",
            "selector": {
                "accessid": "table.appList"
            },
            "public": true
        }
    ]
}