import CoUxAlabel from '../../../../components/10x/ux/ux-a-label.js'
import EuiBasePage from '../eui-base.po.js'

export default class AlabelPage extends EuiBasePage {
  constructor() {
      super();
  }
  labelByIndex(index) {
    let label1 =  new CoUxAlabel(this.mainContent);
    return label1.byIndex(index);
  }
  labelByTextContains(text) {
    let label1 = new CoUxAlabel(this.mainContent);
    return label1.byTextContains(text);
  }
  labelByTextEqualsAndIndex(text, index, normalize=true) {
    let label1 = new CoUxAlabel(this.mainContent);
    return label1.byTextEqualsAndIndex(text, index, normalize);
  }
  labelFromSectionById(id) {
    return new CoUxAlabel(this.sectionById(id));
  }
  labelFromSectionWithIdByIndex(id, index) {
    let label1 = new CoUxAlabel(this.sectionById(id));
    return label1.byIndex(index);
  }
}


