import CoUxLayoutPageColumn from '../../../../components/10x/ux/ux-layout-page-column.js';
import EuiBasePage from '../eui-base.po.js';

export default class LayoutPageColumnPage extends EuiBasePage {

  constructor() {
      super();
  }

  /**
   * Returns the index-nth CoUxLayoutPageColumn from the page
   * @param index - index of the component
   * @returns CoUxLayoutPageColumn
   */
  layoutPageColumnByIndex(index) {
    const layoutPageColumn1 =  new CoUxLayoutPageColumn(this.mainContent);
    return layoutPageColumn1.byIndex(index);
  }
 /**
   * Returns the CoUxLayoutPageColumn from the page that contains the text
   * @param text - text to be contained
   * @returns CoUxLayoutPageColumn
   */
  layoutPageColumnByTextContains(text) {
    let layoutPageColumn1 = new CoUxLayoutPageColumn(this.mainContent);
    return layoutPageColumn1.byTextContains(text);
  }

  /**
   * Returns the CoUxLayoutPageColumn from the page that contains the text
   * @param text - text to be contained
   * @returns CoUxLayoutPageColumn
   */
  layoutPageColumnByTextEqualsAndIndex(text, index, normalize=true) {
    let layoutPageColumn1 = new CoUxLayoutPageColumn(this.mainContent);
    return layoutPageColumn1.byTextEqualsAndIndex(text, index, normalize);
  }
}


