{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: **/XCUIElementTypeOther[$type == 'XCUIElementTypeNavigationBar'$][-1].",
            "Represents the iOS global search modal.",
            "Start a global search or interact with the existing list of recent items."
        ]
    },
    "implements": "utam-salesforceapp/pageObjects/navigation/globalSearch",
    "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'$][-1]"
    },
    "elements": [
        {
            "name": "searchBar",
            "type": "utam-salesforceapp/pageObjects/navigation/searchBar",
            "public": true,
            "selector": {
                "accessid": "search.global.searchBar"
            }
        },
        {
            "name": "searchResults",
            "type": "utam-salesforceapp/pageObjects/navigation/navItemsList",
            "public": true,
            "selector": {
                "accessid": "search.global.results.mru"
            }
        }
    ]
}