{
    "exposeRootElement": true,
    "type": [
        "actionable",
        "clickable"
    ],
    "shadow": {
        "elements": [
            {
                "name": "input",
                "type": [
                    "actionable",
                    "clickable",
                    "editable"
                ],
                "public": true,
                "selector": {
                    "css": "input"
                }
            },
            {
                "name": "label",
                "selector": {
                    "css": "label"
                }
            },
            {
                "name": "errorMessageElem",
                "selector": {
                    "css": "[id^=\"errorMessageBlock\"]"
                }
            },
            {
                "name": "dropDownElement",
                "public": true,
                "selector": {
                    "css": "div > div:nth-child(2) > div > div > div:nth-child(2) > ul > li:nth-child(%d) >div",
                    "args": [
                        {
                            "name": "index",
                            "type": "number"
                        }
                    ]
                }
            }
        ]
    },
    "methods": [
        {
            "name": "hasLabel",
            "compose": [
                {
                    "element": "label",
                    "apply": "isPresent"
                }
            ]
        },
        {
            "name": "getLabel",
            "compose": [
                {
                    "element": "label",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "click",
            "compose": [
                {
                    "element": "input",
                    "apply": "click"
                }
            ]
        },
        {
            "name": "getValue",
            "compose": [
                {
                    "element": "input",
                    "apply": "getValue"
                }
            ]
        },
        {
            "name": "setValue",
            "compose": [
                {
                    "element": "input",
                    "apply": "scrollToTop"
                },
                {
                    "element": "input",
                    "apply": "focus"
                },
                {
                    "element": "input",
                    "apply": "clear"
                },
                {
                    "element": "input",
                    "apply": "setText",
                    "args": [
                        {
                            "name": "text",
                            "type": "string"
                        }
                    ]
                }
            ]
        },
        {
            "name": "blur",
            "compose": [
                {
                    "element": "input",
                    "apply": "focus"
                },
                {
                    "element": "input",
                    "apply": "blur"
                }
            ]
        },
        {
            "name": "focus",
            "compose": [
                {
                    "element": "input",
                    "apply": "focus"
                }
            ]
        },
        {
            "name": "isValid",
            "compose": [
                {
                    "element": "input",
                    "apply": "getAttribute",
                    "args": [
                        {
                            "value": "aria-invalid"
                        }
                    ],
                    "matcher": {
                        "type": "stringContains",
                        "args": [
                            {
                                "value": "false"
                            }
                        ]
                    }
                }
            ]
        },
        {
            "name": "getErrorMessage",
            "compose": [
                {
                    "element": "errorMessageElem",
                    "apply": "getText",
                    "returnType": "string"
                }
            ]
        },
        {
            "name": "isReadonly",
            "compose": [
                {
                    "element": "input",
                    "apply": "getAttribute",
                    "args": [
                        {
                            "value": "readonly"
                        }
                    ],
                    "matcher": {
                        "type": "notNull"
                    }
                }
            ]
        },
        {
            "name": "getPlaceholder",
            "compose": [
                {
                    "element": "input",
                    "apply": "getAttribute",
                    "returnType": "string",
                    "args": [
                        {
                            "value": "placeholder"
                        }
                    ]
                }
            ]
        }
    ],
    "description": {
        "text": [
            " "
        ],
        "author": "Salesforce"
    }
}