@Test public void instantiateMyCalendarDashlet() { SharePage page = drone.getCurrentPage().render(); customiseUserDashBoard = page.getNav().selectCustomizeUserDashboard().render(); dashBoard = customiseUserDashBoard.addDashlet(Dashlets.MY_CALENDAR, 1).render(); myCalendarDashlet = (MyCalendarDashlet) dashBoard.getDashlet(MY_CALENDAR_DASHLET).render(); assertNotNull(myCalendarDashlet); }
@SuppressWarnings("unchecked") @Override public synchronized MyCalendarDashlet 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; }
MyCalendarDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized MyCalendarDashlet 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; } }
MyCalendarDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized MyCalendarDashlet 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  MyCalendarDashlet(WebDrone drone); }
MyCalendarDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized MyCalendarDashlet 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  MyCalendarDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized MyCalendarDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override MyCalendarDashlet render(long time); @SuppressWarnings("unchecked") @Override MyCalendarDashlet render(); int getEventsCount(); boolean isEventsDisplayed(String eventName); boolean isEventDetailsDisplayed(String eventDetail); CalendarPage clickEvent(String eventName); SiteDashboardPage clickSite(String siteName); boolean isRepeating(String event); String getEventDetails(String eventDetail); String getEmptyDashletMessage(); boolean isEventDisplayed(String eventName, String date, String siteName ); SiteDashboardPage clickEventSiteName(String eventName, String siteName); }
MyCalendarDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized MyCalendarDashlet 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  MyCalendarDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized MyCalendarDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override MyCalendarDashlet render(long time); @SuppressWarnings("unchecked") @Override MyCalendarDashlet render(); int getEventsCount(); boolean isEventsDisplayed(String eventName); boolean isEventDetailsDisplayed(String eventDetail); CalendarPage clickEvent(String eventName); SiteDashboardPage clickSite(String siteName); boolean isRepeating(String event); String getEventDetails(String eventDetail); String getEmptyDashletMessage(); boolean isEventDisplayed(String eventName, String date, String siteName ); SiteDashboardPage clickEventSiteName(String eventName, String siteName);  }