@Test(dependsOnMethods = "clickOnEditButton") public void configureSavedSearch() { configureSavedSearchDialogBoxPage.setSearchTerm(fileName); configureSavedSearchDialogBoxPage.setTitle(savedSearchTitle); configureSavedSearchDialogBoxPage.setSearchLimit(SearchLimit.HUNDRED); siteDashBoard = configureSavedSearchDialogBoxPage.clickOnOKButton().render(); }
@SuppressWarnings("unchecked") @Override public synchronized SavedSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); 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; }
SavedSearchDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SavedSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); 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; } }
SavedSearchDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SavedSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); 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  SavedSearchDashlet(WebDrone drone); }
SavedSearchDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SavedSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); 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  SavedSearchDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized SavedSearchDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override SavedSearchDashlet render(long time); @SuppressWarnings("unchecked") @Override SavedSearchDashlet render(); boolean isHelpIconDisplayed(); void clickOnHelpIcon(); boolean isBalloonDisplayed(); String getHelpBalloonMessage(); SavedSearchDashlet closeHelpBallon(); String getTitle(); String getContent(); List<SiteSearchItem> getSearchItems(); ConfigureSavedSearchDialogBoxPage clickOnEditButton(); boolean isItemFound(String itemName); boolean isConfigIconDisplayed(); }
SavedSearchDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SavedSearchDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); 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  SavedSearchDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized SavedSearchDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override SavedSearchDashlet render(long time); @SuppressWarnings("unchecked") @Override SavedSearchDashlet render(); boolean isHelpIconDisplayed(); void clickOnHelpIcon(); boolean isBalloonDisplayed(); String getHelpBalloonMessage(); SavedSearchDashlet closeHelpBallon(); String getTitle(); String getContent(); List<SiteSearchItem> getSearchItems(); ConfigureSavedSearchDialogBoxPage clickOnEditButton(); boolean isItemFound(String itemName); boolean isConfigIconDisplayed();  }