import EuiBasePage from '../eui-base.po.js'
import CoUxButton from '../../../../components/10x/ux/ux-button.js'

export default class ButtonPage extends EuiBasePage {

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

}


