import CoUxLayoutBreadcrumbs from '../../../../components/10x/ux/ux-layout-breadcrumbs.js';
import CoUxLayoutBreadcrumbsItem from '../../../../components/10x/ux/ux-layout-breadcrumbs.js';
import EuiBasePage from '../eui-base.po.js';

export default class LayoutBreadcrumbsPage extends EuiBasePage {

  constructor() {
      super();
  }

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

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

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

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


