@Test(dependsOnMethods = "checkTags", priority = 1, groups="ChromeIssue") public void clickRssFeedBtn() { rssFeedPage = postViewPage.clickRssFeedBtn(username, password).render(); assertTrue(rssFeedPage.isDisplayedInFeed(postName), "The post isn't displayed in Feed"); assertTrue(rssFeedPage.isSubscribePanelDisplay(), "Subscribe panel isn't available"); postViewPage = (PostViewPage) rssFeedPage.clickOnFeedContent(postName); assertNotNull(postViewPage); }
public RssFeedPage clickRssFeedBtn(String username, String password) { logger.info("Viewing RSS Feed for Blog page"); String currentWikiUrl = drone.getCurrentUrl(); String protocolVar = PageUtils.getProtocol(currentWikiUrl); String shareUrlVar = PageUtils.getShareUrl(currentWikiUrl); String siteName = PageUtils.getSiteName(currentWikiUrl); String rssUrl = String.format("%s%s:%s@%s/feedservice/components/blog/rss?site=%s", protocolVar, username, password, shareUrlVar, siteName); drone.navigateTo(rssUrl); return new RssFeedPage(drone).render(); }
BlogPage extends SitePage { public RssFeedPage clickRssFeedBtn(String username, String password) { logger.info("Viewing RSS Feed for Blog page"); String currentWikiUrl = drone.getCurrentUrl(); String protocolVar = PageUtils.getProtocol(currentWikiUrl); String shareUrlVar = PageUtils.getShareUrl(currentWikiUrl); String siteName = PageUtils.getSiteName(currentWikiUrl); String rssUrl = String.format("%s%s:%s@%s/feedservice/components/blog/rss?site=%s", protocolVar, username, password, shareUrlVar, siteName); drone.navigateTo(rssUrl); return new RssFeedPage(drone).render(); } }
BlogPage extends SitePage { public RssFeedPage clickRssFeedBtn(String username, String password) { logger.info("Viewing RSS Feed for Blog page"); String currentWikiUrl = drone.getCurrentUrl(); String protocolVar = PageUtils.getProtocol(currentWikiUrl); String shareUrlVar = PageUtils.getShareUrl(currentWikiUrl); String siteName = PageUtils.getSiteName(currentWikiUrl); String rssUrl = String.format("%s%s:%s@%s/feedservice/components/blog/rss?site=%s", protocolVar, username, password, shareUrlVar, siteName); drone.navigateTo(rssUrl); return new RssFeedPage(drone).render(); } BlogPage(WebDrone drone); }
BlogPage extends SitePage { public RssFeedPage clickRssFeedBtn(String username, String password) { logger.info("Viewing RSS Feed for Blog page"); String currentWikiUrl = drone.getCurrentUrl(); String protocolVar = PageUtils.getProtocol(currentWikiUrl); String shareUrlVar = PageUtils.getShareUrl(currentWikiUrl); String siteName = PageUtils.getSiteName(currentWikiUrl); String rssUrl = String.format("%s%s:%s@%s/feedservice/components/blog/rss?site=%s", protocolVar, username, password, shareUrlVar, siteName); drone.navigateTo(rssUrl); return new RssFeedPage(drone).render(); } BlogPage(WebDrone drone); @SuppressWarnings("unchecked") @Override BlogPage render(RenderTime timer); @SuppressWarnings("unchecked") BlogPage render(); @SuppressWarnings("unchecked") @Override BlogPage render(long time); PostViewPage createPostInternally(String titleField); PostViewPage createPostInternally(String titleField, String txtLines); PostViewPage createPostInternally(String titleField, String txtLines, String tagName); PostViewPage createPostInternally(String titleField, String txtLines, List<String> tags); PostViewPage saveAsDraft(String titleField, String txtLines); boolean isNewPostEnabled(); PostViewPage openBlogPost(String title); int getPostsCount(); boolean isPostPresented(String postName); PostViewPage saveAsDraft(String titleField, String txtLines, List<String> tagName); RssFeedPage clickRssFeedBtn(String username, String password); boolean checkTags(String title, String tag); PostViewPage editPost(String oldTitle, String newTitle, String txtLines, String tagName, boolean removeTag); PostDirectoryInfo getPostDirectoryInfo(final String title); BlogTreeMenuNavigation getLeftMenus(); }
BlogPage extends SitePage { public RssFeedPage clickRssFeedBtn(String username, String password) { logger.info("Viewing RSS Feed for Blog page"); String currentWikiUrl = drone.getCurrentUrl(); String protocolVar = PageUtils.getProtocol(currentWikiUrl); String shareUrlVar = PageUtils.getShareUrl(currentWikiUrl); String siteName = PageUtils.getSiteName(currentWikiUrl); String rssUrl = String.format("%s%s:%s@%s/feedservice/components/blog/rss?site=%s", protocolVar, username, password, shareUrlVar, siteName); drone.navigateTo(rssUrl); return new RssFeedPage(drone).render(); } BlogPage(WebDrone drone); @SuppressWarnings("unchecked") @Override BlogPage render(RenderTime timer); @SuppressWarnings("unchecked") BlogPage render(); @SuppressWarnings("unchecked") @Override BlogPage render(long time); PostViewPage createPostInternally(String titleField); PostViewPage createPostInternally(String titleField, String txtLines); PostViewPage createPostInternally(String titleField, String txtLines, String tagName); PostViewPage createPostInternally(String titleField, String txtLines, List<String> tags); PostViewPage saveAsDraft(String titleField, String txtLines); boolean isNewPostEnabled(); PostViewPage openBlogPost(String title); int getPostsCount(); boolean isPostPresented(String postName); PostViewPage saveAsDraft(String titleField, String txtLines, List<String> tagName); RssFeedPage clickRssFeedBtn(String username, String password); boolean checkTags(String title, String tag); PostViewPage editPost(String oldTitle, String newTitle, String txtLines, String tagName, boolean removeTag); PostDirectoryInfo getPostDirectoryInfo(final String title); BlogTreeMenuNavigation getLeftMenus();  }