import CoUxMFileUpload from '../../../../components/10x/ux/ux-m-file-upload.js'
import EuiBasePage from '../eui-base.po.js'

export default class MFileUploadPage extends EuiBasePage {
  constructor() {
      super();
  }
  fileUploadByIndex(index) {
    let fileUpload =  new CoUxMFileUpload(this.mainContent);
    return fileUpload.byIndex(index);
  }
  fileUploadByTextContains(text) {
    let fileUpload = new CoUxMFileUpload(this.mainContent);
    return fileUpload.byTextContains(text);
  }
   fileUploadFromSectionById(id) {
    return new CoUxMFileUpload(this.sectionById(id));
  }
  fileUploadFromSectionWithIdByIndex(sectionId, index) {
    let fileUpload = new CoUxMFileUpload(this.sectionById(sectionId));
    return fileUpload.byIndex(index);
  }
}


