{
    "description": {
        "text": [
            "Selector: .forceSearchInputLookupDesktopOption.",
            "Represents the forceSearch:inputLookupDesktopOption Aura component.",
            "Get an option label or select an option."
        ],
        "author": "Salesforce"
    },
    "root": true,
    "selector": {
        "css": ".forceSearchInputLookupDesktopOption"
    },
    "beforeLoad": [
        {
            "apply": "waitFor",
            "args": [
                {
                    "type": "function",
                    "predicate": [
                        {
                            "element": "root",
                            "apply": "isPresent"
                        },
                        {
                            "element": "root",
                            "apply": "containsElement",
                            "args": [
                                {
                                    "type": "locator",
                                    "value": {
                                        "css": "a div.primaryLabel"
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "methods": [
        {
            "name": "select",
            "description": {
                "text": [
                    "Selects the option"
                ]
            },
            "compose": [
                {
                    "element": "optionLink",
                    "apply": "click"
                }
            ]
        },
        {
            "name": "getOptionLabel",
            "description": {
                "text": [
                    "Gets the label text for the option"
                ],
                "return": "the label text for the option"
            },
            "compose": [
                {
                    "element": "optionLink",
                    "apply": "getTitle"
                }
            ]
        }
    ],
    "elements": [
        {
            "type": [
                "clickable"
            ],
            "name": "optionLink",
            "selector": {
                "css": "a div.primaryLabel"
            }
        }
    ]
}