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