@Test(dependsOnMethods = "createFolderSelectCancel", groups = "alfresco-one") public void isContentUploadedSucessfulTest() throws Exception { file3 = SiteUtil.prepareFile(); UploadFilePage uploadForm = documentLibPage.getNavigation().selectFileUpload().render(); documentLibPage = uploadForm.uploadFile(file3.getCanonicalPath()).render(); assertTrue(documentLibPage.isContentUploadedSucessful(file3.getName()), "File is uploaded successfully"); }
public synchronized boolean isContentUploadedSucessful(String contentName) { try { DocumentLibraryPage docPage = drone.getCurrentPage().render(); List<FileDirectoryInfo> results = docPage.getFiles(); for (FileDirectoryInfo filenames : results) { if (filenames.getName().equalsIgnoreCase(contentName)) { return true; } } } catch (Exception e) { } return false; }
DocumentLibraryPage extends SitePage { public synchronized boolean isContentUploadedSucessful(String contentName) { try { DocumentLibraryPage docPage = drone.getCurrentPage().render(); List<FileDirectoryInfo> results = docPage.getFiles(); for (FileDirectoryInfo filenames : results) { if (filenames.getName().equalsIgnoreCase(contentName)) { return true; } } } catch (Exception e) { } return false; } }
DocumentLibraryPage extends SitePage { public synchronized boolean isContentUploadedSucessful(String contentName) { try { DocumentLibraryPage docPage = drone.getCurrentPage().render(); List<FileDirectoryInfo> results = docPage.getFiles(); for (FileDirectoryInfo filenames : results) { if (filenames.getName().equalsIgnoreCase(contentName)) { return true; } } } catch (Exception e) { } return false; } DocumentLibraryPage(WebDrone drone, final String subfolderName);  DocumentLibraryPage(WebDrone drone);  DocumentLibraryPage(WebDrone drone, final String contentName, final String hasTag); }
DocumentLibraryPage extends SitePage { public synchronized boolean isContentUploadedSucessful(String contentName) { try { DocumentLibraryPage docPage = drone.getCurrentPage().render(); List<FileDirectoryInfo> results = docPage.getFiles(); for (FileDirectoryInfo filenames : results) { if (filenames.getName().equalsIgnoreCase(contentName)) { return true; } } } catch (Exception e) { } return false; } DocumentLibraryPage(WebDrone drone, final String subfolderName);  DocumentLibraryPage(WebDrone drone);  DocumentLibraryPage(WebDrone drone, final String contentName, final String hasTag); String getContentName(); void setContentName(String contentName); @SuppressWarnings("unchecked") @Override synchronized DocumentLibraryPage render(RenderTime timer); boolean paginatorRendered(); @SuppressWarnings("unchecked") @Override DocumentLibraryPage render(); @SuppressWarnings("unchecked") @Override DocumentLibraryPage render(final long time); DocumentLibraryPage renderItem(final long time, String itemName); boolean isDocumentLibrary(); DocumentLibraryNavigation getNavigation(); FilmstripActions getFilmstripActions(); TreeMenuNavigation getLeftMenus(); boolean isFileUploadInstructionDisplayed(); boolean hasFiles(); List<FileDirectoryInfo> getFiles(); DocumentDetailsPage selectFile(final String title); HtmlPage selectFolder(final String title); synchronized boolean isFileVisible(final String fileName); boolean isFilesVisible(); Integer getCommentCount(); boolean hasNextPage(); boolean hasPreviousPage(); HtmlPage selectNextPage(); HtmlPage selectPreviousPage(); HtmlPage deleteItem(final String name); HtmlPage deleteItem(final int number); synchronized FileDirectoryInfo getContentRow(final String name); @Deprecated HtmlPage clickOnTagNameUnderTagsTreeMenuOnDocumentLibrary(String tagName); List<String> getAllTagNames(); List<String> getAllCategoriesNames(); boolean isItemVisble(String contentName); synchronized boolean isContentUploadedSucessful(String contentName); FileDirectoryInfo getFileDirectoryInfo(final Integer number); FileDirectoryInfo getFileDirectoryInfo(final String title); boolean isShouldHaveFiles(); void setShouldHaveFiles(boolean shouldHaveFiles); boolean isMessagePresent(Optype optype); boolean isSignUpDialogVisible(); @Deprecated int getTagsCountUnderTagsTreeMenu(String tagName); boolean isDocumentsTreeExpanded(); HtmlPage clickDocumentsTreeExpanded(); HtmlPage openCategoriesTree(); ViewType getViewType(); HtmlPage clickOnMyFavourites(); DocumentLibraryPage clickOnRecentlyModified(); DocumentLibraryPage clickOnRecentlyAdded(); DocumentLibraryPage clickOnAllDocuments(); PaginationForm getBottomPaginationForm(); DocumentLibraryPage clickOnCategory(Categories categoryName); HtmlPage createContentFromTemplate(String templateName); HtmlPage createFolderFromTemplate(String templateName); WebElement getTemplate(String templateName); DocumentLibraryPage createContentFromTemplateHover(String templateName); DocumentLibraryPage createFolderFromTemplateHover(String templateName); boolean isCheckBoxPresent(); }
DocumentLibraryPage extends SitePage { public synchronized boolean isContentUploadedSucessful(String contentName) { try { DocumentLibraryPage docPage = drone.getCurrentPage().render(); List<FileDirectoryInfo> results = docPage.getFiles(); for (FileDirectoryInfo filenames : results) { if (filenames.getName().equalsIgnoreCase(contentName)) { return true; } } } catch (Exception e) { } return false; } DocumentLibraryPage(WebDrone drone, final String subfolderName);  DocumentLibraryPage(WebDrone drone);  DocumentLibraryPage(WebDrone drone, final String contentName, final String hasTag); String getContentName(); void setContentName(String contentName); @SuppressWarnings("unchecked") @Override synchronized DocumentLibraryPage render(RenderTime timer); boolean paginatorRendered(); @SuppressWarnings("unchecked") @Override DocumentLibraryPage render(); @SuppressWarnings("unchecked") @Override DocumentLibraryPage render(final long time); DocumentLibraryPage renderItem(final long time, String itemName); boolean isDocumentLibrary(); DocumentLibraryNavigation getNavigation(); FilmstripActions getFilmstripActions(); TreeMenuNavigation getLeftMenus(); boolean isFileUploadInstructionDisplayed(); boolean hasFiles(); List<FileDirectoryInfo> getFiles(); DocumentDetailsPage selectFile(final String title); HtmlPage selectFolder(final String title); synchronized boolean isFileVisible(final String fileName); boolean isFilesVisible(); Integer getCommentCount(); boolean hasNextPage(); boolean hasPreviousPage(); HtmlPage selectNextPage(); HtmlPage selectPreviousPage(); HtmlPage deleteItem(final String name); HtmlPage deleteItem(final int number); synchronized FileDirectoryInfo getContentRow(final String name); @Deprecated HtmlPage clickOnTagNameUnderTagsTreeMenuOnDocumentLibrary(String tagName); List<String> getAllTagNames(); List<String> getAllCategoriesNames(); boolean isItemVisble(String contentName); synchronized boolean isContentUploadedSucessful(String contentName); FileDirectoryInfo getFileDirectoryInfo(final Integer number); FileDirectoryInfo getFileDirectoryInfo(final String title); boolean isShouldHaveFiles(); void setShouldHaveFiles(boolean shouldHaveFiles); boolean isMessagePresent(Optype optype); boolean isSignUpDialogVisible(); @Deprecated int getTagsCountUnderTagsTreeMenu(String tagName); boolean isDocumentsTreeExpanded(); HtmlPage clickDocumentsTreeExpanded(); HtmlPage openCategoriesTree(); ViewType getViewType(); HtmlPage clickOnMyFavourites(); DocumentLibraryPage clickOnRecentlyModified(); DocumentLibraryPage clickOnRecentlyAdded(); DocumentLibraryPage clickOnAllDocuments(); PaginationForm getBottomPaginationForm(); DocumentLibraryPage clickOnCategory(Categories categoryName); HtmlPage createContentFromTemplate(String templateName); HtmlPage createFolderFromTemplate(String templateName); WebElement getTemplate(String templateName); DocumentLibraryPage createContentFromTemplateHover(String templateName); DocumentLibraryPage createFolderFromTemplateHover(String templateName); boolean isCheckBoxPresent(); static final String FILES_AND_DOCUMENTS_TABLE_CSS; }