@Test(dependsOnMethods = "instantiateDashlet") public void getCurrentTopicFilter() throws Exception { MyDiscussionsTopicsFilter currentTopicFilter = myDiscussionsDashlet.getCurrentTopicFilter(); Assert.assertEquals(currentTopicFilter, MY_TOPICS); }
public MyDiscussionsTopicsFilter getCurrentTopicFilter() { try { return MyDiscussionsTopicsFilter.getFilter(drone.find(By.cssSelector(DEFAULT_TOPICS_BUTTON)).getText()); } catch (NoSuchElementException e) { throw new PageException("Unable to locate topic filter elements from the dropdown", e); } }
MyDiscussionsDashlet extends AbstractDashlet implements Dashlet { public MyDiscussionsTopicsFilter getCurrentTopicFilter() { try { return MyDiscussionsTopicsFilter.getFilter(drone.find(By.cssSelector(DEFAULT_TOPICS_BUTTON)).getText()); } catch (NoSuchElementException e) { throw new PageException("Unable to locate topic filter elements from the dropdown", e); } } }
MyDiscussionsDashlet extends AbstractDashlet implements Dashlet { public MyDiscussionsTopicsFilter getCurrentTopicFilter() { try { return MyDiscussionsTopicsFilter.getFilter(drone.find(By.cssSelector(DEFAULT_TOPICS_BUTTON)).getText()); } catch (NoSuchElementException e) { throw new PageException("Unable to locate topic filter elements from the dropdown", e); } } protected  MyDiscussionsDashlet(WebDrone drone); }
MyDiscussionsDashlet extends AbstractDashlet implements Dashlet { public MyDiscussionsTopicsFilter getCurrentTopicFilter() { try { return MyDiscussionsTopicsFilter.getFilter(drone.find(By.cssSelector(DEFAULT_TOPICS_BUTTON)).getText()); } catch (NoSuchElementException e) { throw new PageException("Unable to locate topic filter elements from the dropdown", e); } } 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 MyDiscussionsTopicsFilter getCurrentTopicFilter() { try { return MyDiscussionsTopicsFilter.getFilter(drone.find(By.cssSelector(DEFAULT_TOPICS_BUTTON)).getText()); } catch (NoSuchElementException e) { throw new PageException("Unable to locate topic filter elements from the dropdown", e); } } 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);  }