import CoEuiChipList from '../../../components/14x/eui-chip-list.js'
import EuiBasePage from './eui-base.po.js'

export default class EuiChipListPage extends EuiBasePage {

  constructor() {
      super();
  }
  chipListByIndex(index) {
    return new CoEuiChipList(this.mainContent).byIndex(index);
  }
  chipListByTextContains(text) {
    return new CoEuiChipList(this.mainContent).byTextContains(text);
  }
  chipListByTextEqualsAndIndex(text, index, normalize=true) {
    return new CoEuiChipList(this.mainContent).byTextEqualsAndIndex(text, index, normalize);
  }
  chipListFromSectionById(id) {
    return new CoEuiChipList(this.sectionById(id));
  }
  chipListFromSectionWithIdByIndex(id, index) {
    return new CoEuiChipList(this.sectionById(id)).byIndex(index);
  }
}


