import SelectComponent from '../select.js';

export default class CoEuiSelect extends SelectComponent {
  constructor(parent) {
    let selector = 'select[@euiSelect]';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-select/eui-select.component.ts?at=master
  }
  async isInvalid() {
    return await (await $(this.currentPath + '/self::*[contains(@class,"eui-select--invalid")]')).isExisting();
  }
  async isReadonly() {
    return await (await $(this.currentPath + '/self::*[@readonly="true"]')).isExisting();
  }
  async isHidden() {
    return await (await $(this.currentPath + '/self::*[@hidden]')).isExisting();
  }
}


