@Test(dependsOnMethods = "isMenuTreeVisible", groups = "alfresco-one") public void isDocumentNodeVisible() throws Exception { TreeMenuNavigation treeMenuNav = documentLibPage.getLeftMenus(); assertTrue(treeMenuNav.isDocumentNodeVisible(DocumentsMenu.ALL_DOCUMENTS)); assertTrue(treeMenuNav.isDocumentNodeVisible(DocumentsMenu.IM_EDITING)); assertTrue(treeMenuNav.isDocumentNodeVisible(DocumentsMenu.OTHERS_EDITING)); assertTrue(treeMenuNav.isDocumentNodeVisible(DocumentsMenu.RECENTLY_MODIFIED)); assertTrue(treeMenuNav.isDocumentNodeVisible(DocumentsMenu.RECENTLY_ADDED)); }
public boolean isDocumentNodeVisible(DocumentsMenu docMenu) { if (docMenu == null) { throw new UnsupportedOperationException("DocumentsMenu is required."); } try { return drone.find(By.xpath(TreeMenu.DOCUMENTS.getXpath() + docMenu.getXpath())).isDisplayed(); } catch (NoSuchElementException e) { logger.trace("Unable to find the " + docMenu + " tree." + e.getMessage()); } return false; }
TreeMenuNavigation extends SharePage { public boolean isDocumentNodeVisible(DocumentsMenu docMenu) { if (docMenu == null) { throw new UnsupportedOperationException("DocumentsMenu is required."); } try { return drone.find(By.xpath(TreeMenu.DOCUMENTS.getXpath() + docMenu.getXpath())).isDisplayed(); } catch (NoSuchElementException e) { logger.trace("Unable to find the " + docMenu + " tree." + e.getMessage()); } return false; } }
TreeMenuNavigation extends SharePage { public boolean isDocumentNodeVisible(DocumentsMenu docMenu) { if (docMenu == null) { throw new UnsupportedOperationException("DocumentsMenu is required."); } try { return drone.find(By.xpath(TreeMenu.DOCUMENTS.getXpath() + docMenu.getXpath())).isDisplayed(); } catch (NoSuchElementException e) { logger.trace("Unable to find the " + docMenu + " tree." + e.getMessage()); } return false; } TreeMenuNavigation(WebDrone drone); }
TreeMenuNavigation extends SharePage { public boolean isDocumentNodeVisible(DocumentsMenu docMenu) { if (docMenu == null) { throw new UnsupportedOperationException("DocumentsMenu is required."); } try { return drone.find(By.xpath(TreeMenu.DOCUMENTS.getXpath() + docMenu.getXpath())).isDisplayed(); } catch (NoSuchElementException e) { logger.trace("Unable to find the " + docMenu + " tree." + e.getMessage()); } return false; } TreeMenuNavigation(WebDrone drone); @SuppressWarnings("unchecked") @Override TreeMenuNavigation render(RenderTime timer); @SuppressWarnings("unchecked") @Override TreeMenuNavigation render(); @SuppressWarnings("unchecked") @Override TreeMenuNavigation render(final long time); HtmlPage selectDocumentNode(DocumentsMenu docMenu); HtmlPage selectTagNode(String tagName); HtmlPage selectNode(TreeMenu treeMenu, String... nodePath); List<String> getNodeChildren(TreeMenu treeMenu, String... nodePath); boolean isMenuTreeVisible(TreeMenu treeMenu); boolean isDocumentNodeVisible(DocumentsMenu docMenu); int getTagCount(String tagName); }
TreeMenuNavigation extends SharePage { public boolean isDocumentNodeVisible(DocumentsMenu docMenu) { if (docMenu == null) { throw new UnsupportedOperationException("DocumentsMenu is required."); } try { return drone.find(By.xpath(TreeMenu.DOCUMENTS.getXpath() + docMenu.getXpath())).isDisplayed(); } catch (NoSuchElementException e) { logger.trace("Unable to find the " + docMenu + " tree." + e.getMessage()); } return false; } TreeMenuNavigation(WebDrone drone); @SuppressWarnings("unchecked") @Override TreeMenuNavigation render(RenderTime timer); @SuppressWarnings("unchecked") @Override TreeMenuNavigation render(); @SuppressWarnings("unchecked") @Override TreeMenuNavigation render(final long time); HtmlPage selectDocumentNode(DocumentsMenu docMenu); HtmlPage selectTagNode(String tagName); HtmlPage selectNode(TreeMenu treeMenu, String... nodePath); List<String> getNodeChildren(TreeMenu treeMenu, String... nodePath); boolean isMenuTreeVisible(TreeMenu treeMenu); boolean isDocumentNodeVisible(DocumentsMenu docMenu); int getTagCount(String tagName); static final String REPOSITORY_ROOT_PROPERTY; static final String DOCUMENT_LIBRARY_ROOT_PROPERTY; static final String CATEGORY_ROOT_PROPERTY; static final String SHARED_FILES_ROOT_PROPERTY; }