@Test(dependsOnMethods = "instantiateMyCalendarDashlet") public void getEmptyDashletMessage() { String emptyDashletMessage = myCalendarDashlet.getEmptyDashletMessage(); Assert.assertEquals(emptyDashletMessage, EMPTY_DASHLET_MESSAGE, "Expected message '" + EMPTY_DASHLET_MESSAGE + "' isn't displayed"); }
public String getEmptyDashletMessage() { try { return drone.find(By.cssSelector(EMPTY_DASHLET_MESSAGE)).getText(); } catch (NoSuchElementException nse) { logger.error("Unable to find empty dashlet message.", nse); } throw new PageOperationException("Error in finding the css for empty dashlet message."); }
MyCalendarDashlet extends AbstractDashlet implements Dashlet { public String getEmptyDashletMessage() { try { return drone.find(By.cssSelector(EMPTY_DASHLET_MESSAGE)).getText(); } catch (NoSuchElementException nse) { logger.error("Unable to find empty dashlet message.", nse); } throw new PageOperationException("Error in finding the css for empty dashlet message."); } }
MyCalendarDashlet extends AbstractDashlet implements Dashlet { public String getEmptyDashletMessage() { try { return drone.find(By.cssSelector(EMPTY_DASHLET_MESSAGE)).getText(); } catch (NoSuchElementException nse) { logger.error("Unable to find empty dashlet message.", nse); } throw new PageOperationException("Error in finding the css for empty dashlet message."); } protected  MyCalendarDashlet(WebDrone drone); }
MyCalendarDashlet extends AbstractDashlet implements Dashlet { public String getEmptyDashletMessage() { try { return drone.find(By.cssSelector(EMPTY_DASHLET_MESSAGE)).getText(); } catch (NoSuchElementException nse) { logger.error("Unable to find empty dashlet message.", nse); } throw new PageOperationException("Error in finding the css for empty dashlet message."); } 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 { public String getEmptyDashletMessage() { try { return drone.find(By.cssSelector(EMPTY_DASHLET_MESSAGE)).getText(); } catch (NoSuchElementException nse) { logger.error("Unable to find empty dashlet message.", nse); } throw new PageOperationException("Error in finding the css for empty dashlet message."); } 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);  }