import CoUxProgressCircle from '../../../../components/10x/ux/ux-progress-circle.js'
import EuiBasePage from '../eui-base.po.js'

export default class ProgressCirclePage extends EuiBasePage {

  constructor() {
      super();
  }

  /**
   * Returns the index-nth CoUxProgressCircle from the page
   * @param index - index of the component
   * @returns CoUxProgressCircle
   */
  progressCircleByIndex(index) {
    let progressCircle =  new CoUxProgressCircle(this.mainContent);
    return progressCircle.byIndex(index);
  }

  /**
   * Returns the CoUxProgressCircle from the page that contains the text
   * @param text - text to be contained
   * @returns CoUxProgressCircle
   */
  progressCircleByTextContains(text) {
    let progressCircle = new CoUxProgressCircle(this.mainContent);
    return progressCircle.byTextContains(text);
  }

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

   /**
   * Returns the CoUxProgressCircle from the page that contains the section
   * @param id - id to be contained
   * @returns CoUxProgressCircle
   */
    progressCircleFromSectionById(id) {
      return new CoUxProgressCircle(this.sectionById(id));
    }
    /**
     * Returns the CoUxProgressCircle from the page that contains the section and index
     * @param id - id to be contained
     * @param index - index of the component
     * @returns CoUxProgressCircle
     */
    progressCircleFromSectionWithIdByIndex(id, index) {
      const progressCircle = new CoUxProgressCircle(this.sectionById(id));
      return progressCircle.byIndex(index);
    }

}


