import CoUxGrowl from '../../../../components/10x/ux/ux-growl.js';
import CoUxButton from '../../../../components/10x/ux/ux-button.js';
import EuiBasePage from '../eui-base.po.js';

export default class GrowlPage extends EuiBasePage {
  constructor() {
      super();
  }
  growlByIndex(index) {
    let growl1 =  new CoUxGrowl('//body');
    return growl1.byIndex(index);
  }
  growlByTextContains(text) {
    let growl1 = new CoUxGrowl('//body');
    return growl1.byTextContains(text);
  }
  growlByTextEqualsAndIndex(text, index, normalize=true) {
    let growl1 = new CoUxGrowl('//body');
    return growl1.byTextEqualsAndIndex(text, index, normalize);
  }
  allowMultipleGrowlsCheckbox() {
    return this.mainContent +  '//label[@for = "isGrowlMultiple"]';
  }
  buttonByTextContains(text) {
    let button1 = new CoUxButton(this.mainContent);
    return button1.byTextContains(text);
  }
  positionRadiobutton(value) {
    return this.mainContent +  '//label[text()="'+ value +'"]';
  }
  allowStickyGrowlCheckbox() {
    return this.mainContent +  '//label[text()="Sticky growl"]';
  }
}


