@Test(dependsOnMethods = "testGetSites") public void testGetFolders() throws Exception { folders = copyOrMoveContentPage.getFolders(); Assert.assertNotNull(folders); Assert.assertTrue(folders.contains(folder1)); Assert.assertTrue(folders.contains(folder2)); }
public List<String> getFolders() { List<String> folders = new LinkedList<String>(); try { try { drone.waitForElement(By.id("AlfrescoWebdronez1"), SECONDS.convert(WAIT_TIME_3000, MILLISECONDS)); } catch (TimeoutException e) { } for (WebElement folder : drone.findAndWaitForElements(folderItemsListCss)) { folders.add(folder.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of folders : ", e); } } return folders; }
CopyOrMoveContentPage extends ShareDialogue { public List<String> getFolders() { List<String> folders = new LinkedList<String>(); try { try { drone.waitForElement(By.id("AlfrescoWebdronez1"), SECONDS.convert(WAIT_TIME_3000, MILLISECONDS)); } catch (TimeoutException e) { } for (WebElement folder : drone.findAndWaitForElements(folderItemsListCss)) { folders.add(folder.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of folders : ", e); } } return folders; } }
CopyOrMoveContentPage extends ShareDialogue { public List<String> getFolders() { List<String> folders = new LinkedList<String>(); try { try { drone.waitForElement(By.id("AlfrescoWebdronez1"), SECONDS.convert(WAIT_TIME_3000, MILLISECONDS)); } catch (TimeoutException e) { } for (WebElement folder : drone.findAndWaitForElements(folderItemsListCss)) { folders.add(folder.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of folders : ", e); } } return folders; } CopyOrMoveContentPage(WebDrone drone); }
CopyOrMoveContentPage extends ShareDialogue { public List<String> getFolders() { List<String> folders = new LinkedList<String>(); try { try { drone.waitForElement(By.id("AlfrescoWebdronez1"), SECONDS.convert(WAIT_TIME_3000, MILLISECONDS)); } catch (TimeoutException e) { } for (WebElement folder : drone.findAndWaitForElements(folderItemsListCss)) { folders.add(folder.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of folders : ", e); } } return folders; } CopyOrMoveContentPage(WebDrone drone); @SuppressWarnings("unchecked") @Override CopyOrMoveContentPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override CopyOrMoveContentPage render(long time); @SuppressWarnings("unchecked") @Override CopyOrMoveContentPage render(); String getDialogTitle(); List<String> getDestinations(); List<String> getSites(); List<String> getFolders(); boolean isOkButtonPresent(); boolean isCancelButtonPresent(); HtmlPage selectOkButton(); HtmlPage selectCancelButton(); void selectCloseButton(); CopyOrMoveContentPage selectDestination(String destinationName); CopyOrMoveContentPage selectSite(String siteName); CopyOrMoveContentPage selectPath(String... folderPath); }
CopyOrMoveContentPage extends ShareDialogue { public List<String> getFolders() { List<String> folders = new LinkedList<String>(); try { try { drone.waitForElement(By.id("AlfrescoWebdronez1"), SECONDS.convert(WAIT_TIME_3000, MILLISECONDS)); } catch (TimeoutException e) { } for (WebElement folder : drone.findAndWaitForElements(folderItemsListCss)) { folders.add(folder.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of folders : ", e); } } return folders; } CopyOrMoveContentPage(WebDrone drone); @SuppressWarnings("unchecked") @Override CopyOrMoveContentPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override CopyOrMoveContentPage render(long time); @SuppressWarnings("unchecked") @Override CopyOrMoveContentPage render(); String getDialogTitle(); List<String> getDestinations(); List<String> getSites(); List<String> getFolders(); boolean isOkButtonPresent(); boolean isCancelButtonPresent(); HtmlPage selectOkButton(); HtmlPage selectCancelButton(); void selectCloseButton(); CopyOrMoveContentPage selectDestination(String destinationName); CopyOrMoveContentPage selectSite(String siteName); CopyOrMoveContentPage selectPath(String... folderPath);  }