import CoUxFieldSearch from '../../../../components/10x/ux/ux-field-search.js';
import EuiBasePage from '../eui-base.po.js';

export default class FieldSearchPage extends EuiBasePage {
  constructor() {
      super();
  }
  searchByIndex(index) {
    let search1 =  new CoUxFieldSearch(this.mainContent);
    return search1.byIndex(index);
  }
  searchByTextContains(text) {
    let search1 = new CoUxFieldSearch(this.mainContent);
    return search1.byTextContains(text);
  }
  searchByTextEqualsAndIndex(text, index, normalize=true) {
    let search1 = new CoUxFieldSearch(this.mainContent);
    return search1.byTextEqualsAndIndex(text, index, normalize);
  }
  searchFromSectionById(id) {
    return new CoUxFieldSearch(this.sectionById(id));
  }
  searchFromSectionWithIdByIndex(id, index) {
    let search1 = new CoUxFieldSearch(this.sectionById(id));
    return search1.byIndex(index);
  }
}


