@Test(groups = "alfresco-one") public void isMenuTreeVisible() throws Exception { TreeMenuNavigation treeMenuNav = documentLibPage.getLeftMenus(); assertTrue(treeMenuNav.isMenuTreeVisible(TreeMenu.DOCUMENTS)); assertTrue(treeMenuNav.isMenuTreeVisible(TreeMenu.LIBRARY)); assertTrue(treeMenuNav.isMenuTreeVisible(TreeMenu.TAGS)); AlfrescoVersion version = drone.getProperties().getVersion(); if(!version.isCloud()) { assertTrue(treeMenuNav.isMenuTreeVisible(TreeMenu.CATEGORIES)); } }
public boolean isMenuTreeVisible(TreeMenu treeMenu) { if (treeMenu == null) { throw new UnsupportedOperationException("TreeMenu is required."); } try { return drone.findAndWait(By.xpath(treeMenu.getXpath())).isDisplayed(); } catch (TimeoutException e) { logger.trace("Exceeded time to find the " + treeMenu + " tree." + e.getMessage()); } return false; }
TreeMenuNavigation extends SharePage { public boolean isMenuTreeVisible(TreeMenu treeMenu) { if (treeMenu == null) { throw new UnsupportedOperationException("TreeMenu is required."); } try { return drone.findAndWait(By.xpath(treeMenu.getXpath())).isDisplayed(); } catch (TimeoutException e) { logger.trace("Exceeded time to find the " + treeMenu + " tree." + e.getMessage()); } return false; } }
TreeMenuNavigation extends SharePage { public boolean isMenuTreeVisible(TreeMenu treeMenu) { if (treeMenu == null) { throw new UnsupportedOperationException("TreeMenu is required."); } try { return drone.findAndWait(By.xpath(treeMenu.getXpath())).isDisplayed(); } catch (TimeoutException e) { logger.trace("Exceeded time to find the " + treeMenu + " tree." + e.getMessage()); } return false; } TreeMenuNavigation(WebDrone drone); }
TreeMenuNavigation extends SharePage { public boolean isMenuTreeVisible(TreeMenu treeMenu) { if (treeMenu == null) { throw new UnsupportedOperationException("TreeMenu is required."); } try { return drone.findAndWait(By.xpath(treeMenu.getXpath())).isDisplayed(); } catch (TimeoutException e) { logger.trace("Exceeded time to find the " + treeMenu + " 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 isMenuTreeVisible(TreeMenu treeMenu) { if (treeMenu == null) { throw new UnsupportedOperationException("TreeMenu is required."); } try { return drone.findAndWait(By.xpath(treeMenu.getXpath())).isDisplayed(); } catch (TimeoutException e) { logger.trace("Exceeded time to find the " + treeMenu + " 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; }