@Test(dependsOnMethods = "selectAll", groups = "Enterprise4.2") public void testIsCheckBoxPresent() throws Exception { documentLibPage = drone.getCurrentPage().render(); assertTrue(documentLibPage.isCheckBoxPresent()); }
public boolean isCheckBoxPresent() { try { return drone.findAndWait(By.cssSelector(CHECK_BOX)).isDisplayed(); } catch (NoSuchElementException nse) { logger.error(CHECK_BOX + " isn't present at a page"); return false; } }
DocumentLibraryPage extends SitePage { public boolean isCheckBoxPresent() { try { return drone.findAndWait(By.cssSelector(CHECK_BOX)).isDisplayed(); } catch (NoSuchElementException nse) { logger.error(CHECK_BOX + " isn't present at a page"); return false; } } }
DocumentLibraryPage extends SitePage { public boolean isCheckBoxPresent() { try { return drone.findAndWait(By.cssSelector(CHECK_BOX)).isDisplayed(); } catch (NoSuchElementException nse) { logger.error(CHECK_BOX + " isn't present at a page"); return false; } } DocumentLibraryPage(WebDrone drone, final String subfolderName);  DocumentLibraryPage(WebDrone drone);  DocumentLibraryPage(WebDrone drone, final String contentName, final String hasTag); }
DocumentLibraryPage extends SitePage { public boolean isCheckBoxPresent() { try { return drone.findAndWait(By.cssSelector(CHECK_BOX)).isDisplayed(); } catch (NoSuchElementException nse) { logger.error(CHECK_BOX + " isn't present at a page"); 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 boolean isCheckBoxPresent() { try { return drone.findAndWait(By.cssSelector(CHECK_BOX)).isDisplayed(); } catch (NoSuchElementException nse) { logger.error(CHECK_BOX + " isn't present at a page"); 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; }