@Test(dependsOnMethods="selectHelpIcon") public void getAvailableResultSizes() { Assert.assertEquals(searchDashlet.getAvailableResultSizes().size(), 4); Assert.assertEquals(searchDashlet.getAvailableResultSizes(), Arrays.asList("10", "25", "50", "100")); Assert.assertEquals(searchDashlet.getSelectedSearchLimit(), SearchLimit.TEN); }
public List<String> getAvailableResultSizes() { scrollDownToDashlet(); List<String> resultSizeList = new ArrayList<String>(); drone.findAndWait(RESULT_SIZE_BUTTON).click(); List<WebElement> resultSizeElements = drone.findAndWaitForElements(RESULT_SIZES); for (WebElement webElement : resultSizeElements) { resultSizeList.add(webElement.getText()); } drone.findAndWait(RESULT_SIZE_BUTTON).click(); return resultSizeList; }
SiteSearchDashlet extends AbstractDashlet implements Dashlet { public List<String> getAvailableResultSizes() { scrollDownToDashlet(); List<String> resultSizeList = new ArrayList<String>(); drone.findAndWait(RESULT_SIZE_BUTTON).click(); List<WebElement> resultSizeElements = drone.findAndWaitForElements(RESULT_SIZES); for (WebElement webElement : resultSizeElements) { resultSizeList.add(webElement.getText()); } drone.findAndWait(RESULT_SIZE_BUTTON).click(); return resultSizeList; } }
SiteSearchDashlet extends AbstractDashlet implements Dashlet { public List<String> getAvailableResultSizes() { scrollDownToDashlet(); List<String> resultSizeList = new ArrayList<String>(); drone.findAndWait(RESULT_SIZE_BUTTON).click(); List<WebElement> resultSizeElements = drone.findAndWaitForElements(RESULT_SIZES); for (WebElement webElement : resultSizeElements) { resultSizeList.add(webElement.getText()); } drone.findAndWait(RESULT_SIZE_BUTTON).click(); return resultSizeList; } protected  SiteSearchDashlet(WebDrone drone); }
SiteSearchDashlet extends AbstractDashlet implements Dashlet { public List<String> getAvailableResultSizes() { scrollDownToDashlet(); List<String> resultSizeList = new ArrayList<String>(); drone.findAndWait(RESULT_SIZE_BUTTON).click(); List<WebElement> resultSizeElements = drone.findAndWaitForElements(RESULT_SIZES); for (WebElement webElement : resultSizeElements) { resultSizeList.add(webElement.getText()); } drone.findAndWait(RESULT_SIZE_BUTTON).click(); return resultSizeList; } protected  SiteSearchDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized SiteSearchDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override SiteSearchDashlet render(long time); @SuppressWarnings("unchecked") @Override SiteSearchDashlet render(); boolean isHelpIconDisplayed(); void clickOnHelpIcon(); boolean isBalloonDisplayed(); String getHelpBalloonMessage(); SiteSearchDashlet closeHelpBallon(); String getTitle(); String getContent(); List<SiteSearchItem> getSearchItems(); SiteSearchDashlet search(String text); boolean siteSearchWithRetry(String fileName); List<String> getAvailableResultSizes(); String getSearchText(); void setResultSize(SearchLimit searchLimit); SiteSearchDashlet search(String searchString, SearchLimit searchLimit); SearchLimit getSelectedSearchLimit(); }
SiteSearchDashlet extends AbstractDashlet implements Dashlet { public List<String> getAvailableResultSizes() { scrollDownToDashlet(); List<String> resultSizeList = new ArrayList<String>(); drone.findAndWait(RESULT_SIZE_BUTTON).click(); List<WebElement> resultSizeElements = drone.findAndWaitForElements(RESULT_SIZES); for (WebElement webElement : resultSizeElements) { resultSizeList.add(webElement.getText()); } drone.findAndWait(RESULT_SIZE_BUTTON).click(); return resultSizeList; } protected  SiteSearchDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized SiteSearchDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override SiteSearchDashlet render(long time); @SuppressWarnings("unchecked") @Override SiteSearchDashlet render(); boolean isHelpIconDisplayed(); void clickOnHelpIcon(); boolean isBalloonDisplayed(); String getHelpBalloonMessage(); SiteSearchDashlet closeHelpBallon(); String getTitle(); String getContent(); List<SiteSearchItem> getSearchItems(); SiteSearchDashlet search(String text); boolean siteSearchWithRetry(String fileName); List<String> getAvailableResultSizes(); String getSearchText(); void setResultSize(SearchLimit searchLimit); SiteSearchDashlet search(String searchString, SearchLimit searchLimit); SearchLimit getSelectedSearchLimit(); static Integer retrySearchCount; }