import EuiBasePage from './eui-base.po.js'
import CoEuiDropdownButtonMenu from '../../../components/14x/eui-dropdown-button-menu.js'
import CoEuiDropdownButtonMenuItems from '../../../components/14x/eui-dropdown-button-menu-Items.js'
import CdkOverlayContainer from '../../../components/cdk-overlay-container.js'

export default class EuiDropdownButtonPage extends EuiBasePage {
  constructor() {
      super();
  }
  dropdownButtonMenuByIndex(index) {
    return  new CoEuiDropdownButtonMenu(this.mainContent).byIndex(index);
  }
  dropdownButtonMenuByText(text) {
    return  new CoEuiDropdownButtonMenu(this.mainContent).byTextContains(text);
  }
  dropdownButtonMenuByTextEqualsAndIndex(text, index, normalize=true) {
    return new CoEuiDropdownButtonMenu(this.mainContent).byTextEqualsAndIndex(text, index, normalize);
  }
  dropdownButtonMenuFromSectionWithIdByIndex(id, index) {
    return new CoEuiDropdownButtonMenu(this.sectionById(id)).byIndex(index);
  }
  get euiDropdownButtonMenuItemsCO() {
    return new CoEuiDropdownButtonMenuItems(new CdkOverlayContainer(this.root));
  }
}


