import CoUxDashboardButton from '../../../../components/10x/ux/ux-dashboard-button.js'
import CoUxDashboardButtons from '../../../../components/10x/ux/ux-dashboard-buttons.js'
import EuiBasePage from '../eui-base.po.js'

export default class DashboardButtonPage extends EuiBasePage {
  constructor() {
      super();
  }
  dashboardButtonByIndex(index) {
    let dashboardButton1 =  new CoUxDashboardButtons(this.mainContent).dashboardButton;
    return dashboardButton1.byIndex(index);
  }
  dashboardButtonByTextContains(text) {
    let dashboardButton1 = new CoUxDashboardButtons(this.mainContent).dashboardButton;
    return dashboardButton1.byTextContains(text);
  }
  dashboardButtonByTextEqualsAndIndex(text, index, normalize=true) {
    let dashboardButton1 = new CoUxDashboardButtons(this.mainContent).dashboardButton;
    return dashboardButton1.byTextEqualsAndIndex(text, index, normalize);
  }
  dashboardButtonFromSectionById(id) {
    return new CoUxDashboardButton(this.sectionById(id));
  }
  dashboardButtonFromSectionWithIdByIndex(id, index) {
    let dashboardButton1 = new CoUxDashboardButton(this.sectionById(id));
    return dashboardButton1.byIndex(index);
  }
}


