import CoEuiCard from '../../../components/14x/eui-card.js'
import EuiBasePage from './eui-base.po.js'

export default class EuiCardPage extends EuiBasePage {

  constructor() {
      super();
  }
  get euiCardCO() {
    return new CoEuiCard(this.mainContent);
  }
  cardByTextContains(text) {
    return new CoEuiCard(this.mainContent).byTextContains(text);
  }
  cardByTextEqualsAndIndex(text, index, normalize=true) {
    return new CoEuiCard(this.mainContent).byTextEqualsAndIndex(text, index, normalize);
  }
  cardFromSectionById(id) {
    return new CoEuiCard(this.sectionById(id));
  }
  cardFromSectionWithIdByIndex(id, index) {
    return new CoEuiCard(this.sectionById(id)).byIndex(index);
  }

}


