import CoEuiTooltip from '../../../components/14x/eui-tooltip.js'
import EuiBasePage from './eui-base.po.js'

export default class EuiTooltipPage extends EuiBasePage {

  constructor() {
      super();
  }

  tooltipByIndex(index) {
    let tooltip =  new CoEuiTooltip(this.mainContent);
    return tooltip.byIndex(index);
  }
  tooltipByTextContains(text) {
    let tooltip = new CoEuiTooltip(this.mainContent);
    return tooltip.byTextContains(text);
  }
  tooltipByTextEqualsAndIndex(text, index, normalize=true) {
    let tooltip = new CoEuiTooltip(this.mainContent);
    return tooltip.byTextEqualsAndIndex(text, index, normalize);
  }
  tooltipFromSectionById(id) {
    return new CoEuiTooltip(this.sectionById(id));
  }
  tooltipFromSectionWithIdByIndex(id, index) {
    let tooltip = new CoEuiTooltip(this.sectionById(id));
    return tooltip.byIndex(index);
  }

}


