import EuiBasePage from '../eui-base.po.js'
import CoUxPanel from '../../../../components/10x/ux/ux-panel.js'

export default class PanelPage extends EuiBasePage {
  constructor() {
      super();
  }
  panelByIndex(index) {
    let panel1 =  new CoUxPanel(this.mainContent);
    return panel1.byIndex(index);
  }
  panelByTextContains(text) {
    let panel1 = new CoUxPanel(this.mainContent);
    return panel1.byTextContains(text);
  }
  panelByTextEqualsAndIndex(text, index, normalize=true) {
    let panel1 = new CoUxPanel(this.mainContent);
    return panel1.byTextEqualsAndIndex(text, index, normalize);
  }
  panelFromSectionById(id) {
    return new CoUxPanel(this.sectionById(id));
  }
  panelFromSectionWithIdByIndex(id, index) {
    let panel1 = new CoUxPanel(this.sectionById(id));
    return panel1.byIndex(index);
  }
  panelsByIndex(index) {
    return new CoUxPanels(this.mainContent).byIndex(index);
  }
  panelsFromSectionWithIdByIndex(id, index) {
    return new CoUxPanels(this.sectionById(id)).byIndex(index);
  }
}


