@Test public void instantiateDashlet() { customiseSiteDashBoard = siteDashBoard.getSiteNav().selectCustomizeDashboard(); customiseSiteDashBoard.render(); siteDashBoard = customiseSiteDashBoard.addDashlet(Dashlets.SITE_SEARCH, 1).render(); searchDashlet = siteDashBoard.getDashlet(SITE_SEARCH).render(); Assert.assertNotNull(searchDashlet); }
@SuppressWarnings("unchecked") @Override public synchronized SiteSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(WAIT_TIME); } catch (InterruptedException e) { } } try { getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); drone.find(SEARCH_BUTTON); drone.find(INPUT_BOX); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; }
SiteSearchDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SiteSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(WAIT_TIME); } catch (InterruptedException e) { } } try { getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); drone.find(SEARCH_BUTTON); drone.find(INPUT_BOX); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; } }
SiteSearchDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SiteSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(WAIT_TIME); } catch (InterruptedException e) { } } try { getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); drone.find(SEARCH_BUTTON); drone.find(INPUT_BOX); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; } protected  SiteSearchDashlet(WebDrone drone); }
SiteSearchDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SiteSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(WAIT_TIME); } catch (InterruptedException e) { } } try { getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); drone.find(SEARCH_BUTTON); drone.find(INPUT_BOX); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; } 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 { @SuppressWarnings("unchecked") @Override public synchronized SiteSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(WAIT_TIME); } catch (InterruptedException e) { } } try { getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); drone.find(SEARCH_BUTTON); drone.find(INPUT_BOX); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; } 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; }