{
    "description": {
        "text": [
            "Selector: one-app-nav-bar-menu-item.",
            "Represents the one-app-nav-bar-menu-item Lightning web component.",
            "Access the link or its inner text."
        ],
        "author": "Salesforce"
    },
    "methods": [
        {
            "description": {
                "text": [
                    "Gets the inner text"
                ],
                "return": "the inner text"
            },
            "name": "getInnerText",
            "compose": [
                {
                    "apply": "getText",
                    "element": "link"
                }
            ]
        },
        {
            "description": {
                "text": [
                    "Clicks the link and waits for a specific URL match"
                ],
                "return": "none"
            },
            "name": "clickAndWaitForUrl",
            "compose": [
                {
                    "element": "link",
                    "apply": "click"
                },
                {
                    "apply": "waitFor",
                    "args": [
                        {
                            "type": "function",
                            "predicate": [
                                {
                                    "element": "document",
                                    "apply": "getUrl",
                                    "matcher": {
                                        "type": "stringContains",
                                        "args": [
                                            {
                                                "type": "string",
                                                "name": "url"
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "shadow": {
        "elements": [
            {
                "name": "link",
                "public": true,
                "type": [
                    "clickable"
                ],
                "selector": {
                    "css": "a"
                }
            }
        ]
    }
}