{
    "exposeRootElement": true,
    "type": [
        "actionable",
        "editable"
    ],
    "shadow": {
        "elements": [
            {
                "name": "input",
                "type": [
                    "actionable",
                    "clickable",
                    "editable"
                ],
                "selector": {
                    "css": "input"
                }
            },
            {
                "name": "label",
                "selector": {
                    "css": ".slds-form-element__label"
                }
            },
            {
                "name": "errorMessageElem",
                "selector": {
                    "css": ".slds-form-element__help"
                },
                "nullable": true
            },
            {
                "name": "optionLabels",
                "public": true,
                "selector": {
                    "css": "fieldset .slds-radio__label > .slds-form-element__label",
                    "returnAll": true
                }
            },
            {
                "name": "radioButton",
                "type": "clickable",
                "selector": {
                    "css": ".slds-radio_faux",
                    "returnAll": true
                }
            },
            {
                "name": "imageRadioButton",
                "type": "clickable",
                "selector": {
                    "css": ".slds-img-item_select-container",
                    "returnAll": true
                }
            },
            {
                "name": "buttonGroupRadioButton",
                "type": "clickable",
                "public": true,
                "selector": {
                    "css": ".slds-radio_button",
                    "returnAll": true
                }
            },
            {
                "name": "imageRadioButtonCaption",
                "type": "clickable",
                "selector": {
                    "css": ".slds-caption-out_cont",
                    "returnAll": true
                }
            },
            {
                "name": "radioButtonAtIndex",
                "type": "container",
                "selector": {
                    "css": ".slds-radio_faux:nth-of-type(%d)",
                    "args": [
                        {
                            "name": "index",
                            "type": "number"
                        }
                    ]
                }
            },
            {
                "name": "elementByCssSelector",
                "public": true,
                "type": [
                    "clickable"
                ],
                "selector": {
                    "css": "%s",
                    "args": [
                        {
                            "name": "elementName",
                            "type": "string"
                        }
                    ]
                }
            }
        ]
    },
    "methods": [
        {
            "name": "getRadioOptionLabels",
            "compose": [
                {
                    "element": "optionLabels",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "getRadioButtons",
            "compose": [
                {
                    "element": "radioButton"
                }
            ]
        },
        {
            "name": "getImageRadioButtons",
            "compose": [
                {
                    "element": "imageRadioButton"
                }
            ]
        },
        {
            "name": "getImageRadioButtonCaptions",
            "compose": [
                {
                    "element": "imageRadioButtonCaption"
                }
            ]
        },
        {
            "name": "focusAtIndex",
            "compose": [
                {
                    "element": "radioButtonAtIndex",
                    "args": [
                        {
                            "name": "buttonIndex",
                            "type": "number"
                        },
                        {
                            "type": "pageObject",
                            "value": "utam-omnistudio-common/pageObjects/input"
                        }
                    ],
                    "returnType": "utam-omnistudio-common/pageObjects/input"
                },
                {
                    "chain": true,
                    "apply": "focus"
                }
            ]
        },
        {
            "name": "hasLabel",
            "compose": [
                {
                    "element": "label",
                    "apply": "isPresent"
                }
            ]
        },
        {
            "name": "getLabel",
            "compose": [
                {
                    "element": "label",
                    "apply": "getText"
                }
            ]
        },
        {
            "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"
                    }
                }
            ]
        }
    ],
    "description": {
        "text": [
            " "
        ],
        "author": "Salesforce"
    }
}