@Test public void instantiateDashlet() { customiseSiteDashBoard = siteDashBoard.getSiteNav().selectCustomizeDashboard(); customiseSiteDashBoard.render(); siteDashBoard = customiseSiteDashBoard.addDashlet(Dashlets.SITE_CALENDAR, 2).render(); siteCalendarDashlet = siteDashBoard.getDashlet(SITE_CALENDAR_DASHLET).render(); assertNotNull(siteCalendarDashlet); }
@SuppressWarnings("unchecked") @Override public synchronized SiteCalendarDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); this.dashlet = drone.findAndWait((DASHLET_CONTAINER_PLACEHOLDER), 100L, 10L); 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; }
SiteCalendarDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SiteCalendarDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); this.dashlet = drone.findAndWait((DASHLET_CONTAINER_PLACEHOLDER), 100L, 10L); 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; } }
SiteCalendarDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SiteCalendarDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); this.dashlet = drone.findAndWait((DASHLET_CONTAINER_PLACEHOLDER), 100L, 10L); 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  SiteCalendarDashlet(WebDrone drone); }
SiteCalendarDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SiteCalendarDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); this.dashlet = drone.findAndWait((DASHLET_CONTAINER_PLACEHOLDER), 100L, 10L); 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  SiteCalendarDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized SiteCalendarDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override SiteCalendarDashlet render(long time); @SuppressWarnings("unchecked") @Override SiteCalendarDashlet render(); int getEventsCount(); boolean isEventsDisplayed(String eventName); boolean isEventsWithDetailDisplayed(String eventDetail); boolean isEventsWithDetailDisplayed(String eventName, String startTime, String endTime); boolean isRepeating(String event); }
SiteCalendarDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized SiteCalendarDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); this.dashlet = drone.findAndWait((DASHLET_CONTAINER_PLACEHOLDER), 100L, 10L); 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  SiteCalendarDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized SiteCalendarDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override SiteCalendarDashlet render(long time); @SuppressWarnings("unchecked") @Override SiteCalendarDashlet render(); int getEventsCount(); boolean isEventsDisplayed(String eventName); boolean isEventsWithDetailDisplayed(String eventDetail); boolean isEventsWithDetailDisplayed(String eventName, String startTime, String endTime); boolean isRepeating(String event);  }