private void redirectFromFullSiteToOasis() { ArticleNavigationComponentObject navigation = new ArticleNavigationComponentObject(driver); SkinHelper helper = new SkinHelper(driver); new ArticlePageObject(driver).openWikiPage(url); new MercuryFooterComponentObject(driver).clickFullSiteLink(); navigation.clickRandomArticle(); Assertion.assertTrue(helper.isSkin(Skin.OASIS)); }
@Test(groups = "MercuryRedirectionTest_004") @InBrowser(browser = Browser.CHROME_ANDROID) public void MercuryRedirectionTest_004_RedirectFromFullSiteToMobile() { OasisFooterComponentObject oasisFooter = new OasisFooterComponentObject(driver); SkinHelper helper = new SkinHelper(driver); NavigationSideComponentObject navigation = new NavigationSideComponentObject(driver); new ArticlePageObject(driver).openWikiPage(url); new MercuryFooterComponentObject(driver).clickFullSiteLink(); oasisFooter.clickMobileSiteLink(); navigation.clickSearchButton(); navigation.clickRandomPageButton(); Assertion.assertTrue(helper.isSkin(Skin.MERCURY)); }