import EuiBasePage from './eui-base.po.js'
import CoEuiFieldset from '../../../components/14x/eui-fieldset.js'

export default class FieldsetPage extends EuiBasePage {
  constructor() {
      super();
  }
  fieldsetByIndex(index) {
    return new CoEuiFieldset(this.mainContent).byIndex(index);
  }
  fieldsetByTextContains(text) {
    return new CoEuiFieldset(this.mainContent).byTextContains(text);
  }
  fieldsetByTextEqualsAndIndex(text, index, normalize=true) {
    return new CoEuiFieldset(this.mainContent).byTextEqualsAndIndex(text, index, normalize);
  }
  fieldsetFromSectionById(id) {
    return new CoEuiFieldset(this.sectionById(id));
  }
  fieldsetFromSectionWithIdByIndex(id, index) {
    return new CoEuiFieldset(this.sectionById(id)).byIndex(index);
  }
}


