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

export default class CoEuiDisableContent extends Component {
  constructor(parent) {
    let selector = 'eui-disable-content';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-disable-content/eui-disable-content.component.html?at=master
  }
  get divCO() {
    return new DivComponent(this.currentPath);
  }
  async isDisabled() {
    return await (await $(this.divCO.currentPath + '/self::div[contains(@class,"eui-disable-content--disabled")]')).isExisting();
  }
}


