@Test(dependsOnMethods="instantiateDashlet") public void verifyEmptyDashletMessage() { String emptyDashletMessage = myDiscussionsDashlet.getEmptyDashletMessage(); Assert.assertEquals(emptyDashletMessage, EMPTY_DASHLET_MESSAGE); }
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."); }
MyDiscussionsDashlet 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."); } }
MyDiscussionsDashlet 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  MyDiscussionsDashlet(WebDrone drone); }
MyDiscussionsDashlet 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  MyDiscussionsDashlet(WebDrone drone); @SuppressWarnings("unchecked") MyDiscussionsDashlet render(); @SuppressWarnings("unchecked") @Override MyDiscussionsDashlet render(final long time); @SuppressWarnings("unchecked") MyDiscussionsDashlet render(RenderTime timer); String getEmptyDashletMessage(); boolean isHelpButtonDisplayed(); boolean isNewTopicLinkDisplayed(); void clickHelpButton(); CreateNewTopicPage clickNewTopicButton(); boolean isBalloonDisplayed(); String getHelpBalloonMessage(); MyDiscussionsDashlet closeHelpBallon(); void clickTopicsButtton(); void clickHistoryButtton(); List<MyDiscussionsTopicsFilter> getTopicFilters(); List<MyDiscussionsHistoryFilter> getHistoryFilters(); HtmlPage selectTopicsFilter(MyDiscussionsTopicsFilter filter); MyDiscussionsTopicsFilter getCurrentTopicFilter(); MyDiscussionsHistoryFilter getCurrentHistoryFilter(); HtmlPage selectTopicsHistoryFilter(MyDiscussionsHistoryFilter lastDayTopics); ShareLink selectLink(final String name); ShareLink selectTopicTitle(final String name); ShareLink selectTopicUser(final String name); synchronized List<ShareLink> getTopics(LinkType linkType); synchronized List<TopicStatusDetails> getUpdatedTopics(); boolean isTopicTitleDisplayed(String topicTitle); void resizeDashlet(int x, int y); }
MyDiscussionsDashlet 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  MyDiscussionsDashlet(WebDrone drone); @SuppressWarnings("unchecked") MyDiscussionsDashlet render(); @SuppressWarnings("unchecked") @Override MyDiscussionsDashlet render(final long time); @SuppressWarnings("unchecked") MyDiscussionsDashlet render(RenderTime timer); String getEmptyDashletMessage(); boolean isHelpButtonDisplayed(); boolean isNewTopicLinkDisplayed(); void clickHelpButton(); CreateNewTopicPage clickNewTopicButton(); boolean isBalloonDisplayed(); String getHelpBalloonMessage(); MyDiscussionsDashlet closeHelpBallon(); void clickTopicsButtton(); void clickHistoryButtton(); List<MyDiscussionsTopicsFilter> getTopicFilters(); List<MyDiscussionsHistoryFilter> getHistoryFilters(); HtmlPage selectTopicsFilter(MyDiscussionsTopicsFilter filter); MyDiscussionsTopicsFilter getCurrentTopicFilter(); MyDiscussionsHistoryFilter getCurrentHistoryFilter(); HtmlPage selectTopicsHistoryFilter(MyDiscussionsHistoryFilter lastDayTopics); ShareLink selectLink(final String name); ShareLink selectTopicTitle(final String name); ShareLink selectTopicUser(final String name); synchronized List<ShareLink> getTopics(LinkType linkType); synchronized List<TopicStatusDetails> getUpdatedTopics(); boolean isTopicTitleDisplayed(String topicTitle); void resizeDashlet(int x, int y);  }