import CoEuiButton from '../../../components/14x/eui-button.js'
import EuiBasePage from './eui-base.po.js'

export default class EuiButtonPage extends EuiBasePage {

  constructor() {
      super();
  }
  buttonByIndex(index) {
    return new CoEuiButton(this.mainContent).byIndex(index);
  }
  buttonByTextContains(text) {
    return new CoEuiButton(this.mainContent).byTextContains(text);
  }
  buttonByTextEqualsAndIndex(text, index, normalize=true) {
    return new CoEuiButton(this.mainContent).byTextEqualsAndIndex(text, index, normalize);
  }
  buttonFromSectionById(id) {
   return new CoEuiButton(this.sectionById(id));
  }
  buttonFromSectionWithIdByIndex(id, index) {
    return new CoEuiButton(this.sectionById(id)).byIndex(index);
  }
}


