@Test(dependsOnMethods = "isCopyContentPage") public void testGetDestinations() throws Exception { destinations = copyOrMoveContentPage.getDestinations(); Assert.assertNotNull(destinations); Assert.assertTrue(destinations.size() > 0); }
public List<String> getDestinations() { List<String> destinations = new LinkedList<String>(); try { for (WebElement destination : drone.findAndWaitForElements(destinationListCss)) { destinations.add(destination.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of destionations : ", e); } } return destinations; }
CopyOrMoveContentPage extends ShareDialogue { public List<String> getDestinations() { List<String> destinations = new LinkedList<String>(); try { for (WebElement destination : drone.findAndWaitForElements(destinationListCss)) { destinations.add(destination.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of destionations : ", e); } } return destinations; } }
CopyOrMoveContentPage extends ShareDialogue { public List<String> getDestinations() { List<String> destinations = new LinkedList<String>(); try { for (WebElement destination : drone.findAndWaitForElements(destinationListCss)) { destinations.add(destination.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of destionations : ", e); } } return destinations; } CopyOrMoveContentPage(WebDrone drone); }
CopyOrMoveContentPage extends ShareDialogue { public List<String> getDestinations() { List<String> destinations = new LinkedList<String>(); try { for (WebElement destination : drone.findAndWaitForElements(destinationListCss)) { destinations.add(destination.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of destionations : ", e); } } return destinations; } 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> getDestinations() { List<String> destinations = new LinkedList<String>(); try { for (WebElement destination : drone.findAndWaitForElements(destinationListCss)) { destinations.add(destination.getText()); } } catch (TimeoutException e) { if (logger.isTraceEnabled()) { logger.trace("Unable to get the list of destionations : ", e); } } return destinations; } 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);  }