@Test(dependsOnMethods = "addDiscussionsPage") public void isNoTopicsDisplayed() { assertTrue(discussionsPage.isNoTopicsDisplayed()); }
public boolean isNoTopicsDisplayed() { boolean isDisplayed; try { WebElement theItem = drone.findAndWait(NO_TOPICS); isDisplayed = theItem.isDisplayed(); } catch (TimeoutException te) { if (logger.isDebugEnabled()) { logger.debug("Unable to locate expected element.", te); } throw new PageOperationException("Unable to locate expected element."); } return isDisplayed; }
DiscussionsPage extends TopicsListPage { public boolean isNoTopicsDisplayed() { boolean isDisplayed; try { WebElement theItem = drone.findAndWait(NO_TOPICS); isDisplayed = theItem.isDisplayed(); } catch (TimeoutException te) { if (logger.isDebugEnabled()) { logger.debug("Unable to locate expected element.", te); } throw new PageOperationException("Unable to locate expected element."); } return isDisplayed; } }
DiscussionsPage extends TopicsListPage { public boolean isNoTopicsDisplayed() { boolean isDisplayed; try { WebElement theItem = drone.findAndWait(NO_TOPICS); isDisplayed = theItem.isDisplayed(); } catch (TimeoutException te) { if (logger.isDebugEnabled()) { logger.debug("Unable to locate expected element.", te); } throw new PageOperationException("Unable to locate expected element."); } return isDisplayed; } DiscussionsPage(WebDrone drone); }
DiscussionsPage extends TopicsListPage { public boolean isNoTopicsDisplayed() { boolean isDisplayed; try { WebElement theItem = drone.findAndWait(NO_TOPICS); isDisplayed = theItem.isDisplayed(); } catch (TimeoutException te) { if (logger.isDebugEnabled()) { logger.debug("Unable to locate expected element.", te); } throw new PageOperationException("Unable to locate expected element."); } return isDisplayed; } 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 boolean isNoTopicsDisplayed() { boolean isDisplayed; try { WebElement theItem = drone.findAndWait(NO_TOPICS); isDisplayed = theItem.isDisplayed(); } catch (TimeoutException te) { if (logger.isDebugEnabled()) { logger.debug("Unable to locate expected element.", te); } throw new PageOperationException("Unable to locate expected element."); } return isDisplayed; } 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();  }