import Component  from '../component.js';

export default class CoEuiInputRadio extends Component {
  constructor(parent) {
    let selector = 'input[@euiInputRadio]';
    super(parent, selector);
    // https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-input-radio/eui-input-radio.component.ts?at=master
  }
  async isInvalid() {
    return await (await $(this.currentPath + '/self::input[contains(@class,"eui-input-radio--invalid"]')).isExisting();
  }
  async isReadOnly() {
    return await (await $(this.currentPath + '/self::input[@readonly]')).isExisting();
  }
  async isChecked() {
    return await (await $(this.currentPath + '/self::input[@checked]')).isExisting();
  }
}


