@Test(dependsOnMethods = "createTopic") public void viewTopic() { topicViewPage.clickBack(); assertNotNull(discussionsPage); topicViewPage = discussionsPage.viewTopic(text).render(); assertNotNull(topicViewPage); }
public TopicViewPage viewTopic(String title) { try { getTopicDirectoryInfo(title).viewTopic(); return new TopicViewPage(drone).render(); } catch (TimeoutException te) { throw new ShareException("Unable to view the topic"); } }
DiscussionsPage extends TopicsListPage { public TopicViewPage viewTopic(String title) { try { getTopicDirectoryInfo(title).viewTopic(); return new TopicViewPage(drone).render(); } catch (TimeoutException te) { throw new ShareException("Unable to view the topic"); } } }
DiscussionsPage extends TopicsListPage { public TopicViewPage viewTopic(String title) { try { getTopicDirectoryInfo(title).viewTopic(); return new TopicViewPage(drone).render(); } catch (TimeoutException te) { throw new ShareException("Unable to view the topic"); } } DiscussionsPage(WebDrone drone); }
DiscussionsPage extends TopicsListPage { public TopicViewPage viewTopic(String title) { try { getTopicDirectoryInfo(title).viewTopic(); return new TopicViewPage(drone).render(); } catch (TimeoutException te) { throw new ShareException("Unable to view the topic"); } } DiscussionsPage(WebDrone drone); @SuppressWarnings("unchecked") @Override DiscussionsPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override DiscussionsPage render(); @SuppressWarnings("unchecked") @Override DiscussionsPage render(long time); TopicViewPage createTopic(String titleField, String textLines); TopicViewPage createTopic(String titleField); TopicViewPage createTopic(String titleField, String textLines, String tag); TopicDirectoryInfo getTopicDirectoryInfo(final String title); boolean isNewTopicEnabled(); TopicViewPage viewTopic(String title); TopicViewPage editTopic(String oldTitle, String newTitle, String txtLines); TopicViewPage editTopic(String oldTitle, String newTitle, String txtLines, String tagName); TopicViewPage editTopic(String oldTitle, String newTitle, String txtLines, String tagName,  boolean removeTag); DiscussionsPage deleteTopicWithConfirm(String title); int getTopicsCount(); boolean isEditTopicDisplayed(String title); boolean isDeleteTopicDisplayed(String title); TopicsListFilter getTopicsListFilter(); List<String> getTopicTitles(); boolean isTopicPresented(String title); boolean checkTags(String title, String tag); boolean isNoTopicsDisplayed(); }
DiscussionsPage extends TopicsListPage { public TopicViewPage viewTopic(String title) { try { getTopicDirectoryInfo(title).viewTopic(); return new TopicViewPage(drone).render(); } catch (TimeoutException te) { throw new ShareException("Unable to view the topic"); } } DiscussionsPage(WebDrone drone); @SuppressWarnings("unchecked") @Override DiscussionsPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override DiscussionsPage render(); @SuppressWarnings("unchecked") @Override DiscussionsPage render(long time); TopicViewPage createTopic(String titleField, String textLines); TopicViewPage createTopic(String titleField); TopicViewPage createTopic(String titleField, String textLines, String tag); TopicDirectoryInfo getTopicDirectoryInfo(final String title); boolean isNewTopicEnabled(); TopicViewPage viewTopic(String title); TopicViewPage editTopic(String oldTitle, String newTitle, String txtLines); TopicViewPage editTopic(String oldTitle, String newTitle, String txtLines, String tagName); TopicViewPage editTopic(String oldTitle, String newTitle, String txtLines, String tagName,  boolean removeTag); DiscussionsPage deleteTopicWithConfirm(String title); int getTopicsCount(); boolean isEditTopicDisplayed(String title); boolean isDeleteTopicDisplayed(String title); TopicsListFilter getTopicsListFilter(); List<String> getTopicTitles(); boolean isTopicPresented(String title); boolean checkTags(String title, String tag); boolean isNoTopicsDisplayed();  }