import CoEuiChip from '../../../../components/10x/eui/eui-chip.js'
import EuiBasePage from '../eui-base.po.js'

export default class EuiChipPage extends EuiBasePage {

  constructor() {
      super();
  }
  chipByIndex(index) {
    let chip =  new CoEuiChip(this.mainContent);
    return chip.byIndex(index);
  }
  chipByTextContains(text) {
    let chip = new CoEuiChip(this.mainContent);
    return chip.byTextContains(text);
  }
  chipByTextEqualsAndIndex(text, index, normalize=true) {
    let chip = new CoEuiChip(this.mainContent);
    return chip.byTextEqualsAndIndex(text, index, normalize);
  }
  chipFromSectionById(id) {
    return new CoEuiChip(this.sectionById(id));
  }
  chipFromSectionWithIdByIndex(id, index) {
    let chip = new CoEuiChip(this.sectionById(id));
    return chip.byIndex(index);
  }
}


