Search in sources :

Example 1 with HomePage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.

the class TestCorrelatorDFP method correlatorIDInQueryStringShouldBeTheSameMercury.

@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(groups = "DFPCorrelatorMercury")
@NetworkTrafficDump
@Execute(onWikia = "project43")
public void correlatorIDInQueryStringShouldBeTheSameMercury() {
    networkTrafficInterceptor.startIntercepting("DFPCorrelator");
    new HomePage().open();
    networkTrafficInterceptor.logDFP(correlatorMobile);
}
Also used : HomePage(com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage) NetworkTrafficDump(com.wikia.webdriver.common.core.annotations.NetworkTrafficDump) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 2 with HomePage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.

the class TestCorrelatorDFP method correlatorIDInQueryStringShouldBeTheSameOasis.

@Test(groups = "DFPCorrelatorOasis")
@NetworkTrafficDump
@Execute(onWikia = "project43")
public void correlatorIDInQueryStringShouldBeTheSameOasis() {
    networkTrafficInterceptor.startIntercepting("DFPCorrelator");
    new HomePage().open();
    networkTrafficInterceptor.logDFP(correlatorDesktop);
}
Also used : HomePage(com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage) NetworkTrafficDump(com.wikia.webdriver.common.core.annotations.NetworkTrafficDump) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 3 with HomePage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.

the class Searching method serachGlobalNavigationBarAsLoggedIn.

@Test(groups = { "serachGlobalNavigationBarAsLoggedIn" }, dataProvider = "getDataForGlobalSearch")
@Execute(asUser = User.USER)
public void serachGlobalNavigationBarAsLoggedIn(String wikiName, String query, String expectedSpecialPage) {
    HomePage homePage = new HomePage();
    homePage.getUrl(urlBuilder.getUrlForWiki(wikiName));
    SearchPageObject search = homePage.getGlobalNavigation().search(query);
    Assertion.assertStringContains(driver.getCurrentUrl(), expectedSpecialPage);
    Assertion.assertTrue(search.isResultPresent());
}
Also used : HomePage(com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage) SearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 4 with HomePage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.

the class Searching method serachGlobalNavigationBarAsAnon.

@Test(groups = { "serachGlobalNavigationBarAsAnon" }, dataProvider = "getDataForGlobalSearch")
public void serachGlobalNavigationBarAsAnon(String wikiName, String query, String expectedSpecialPage) {
    HomePage homePage = new HomePage();
    homePage.getUrl(urlBuilder.getUrlForWiki(wikiName));
    SearchPageObject search = homePage.getGlobalNavigation().search(query);
    Assertion.assertStringContains(driver.getCurrentUrl(), expectedSpecialPage);
    Assertion.assertTrue(search.isResultPresent());
}
Also used : HomePage(com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage) SearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject) Test(org.testng.annotations.Test)

Example 5 with HomePage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage in project selenium-tests by Wikia.

the class Layout method testLayoutForEnglishLoggedIn.

@Test(groups = { "globalNavigationBarLayoutForEnglishLoggedIn" })
@Execute(asUser = User.USER)
public void testLayoutForEnglishLoggedIn() {
    GlobalNavigation globalNavigation = new HomePage().getGlobalNavigation();
    Assert.assertTrue(globalNavigation.isFandomLogoVisible());
    Assert.assertTrue(globalNavigation.isGamesHubVisible());
    Assert.assertTrue(globalNavigation.isMoviesHubVisible());
    Assert.assertTrue(globalNavigation.isTVHubVisible());
    Assert.assertTrue(globalNavigation.isWikisMenuVisible());
    Assert.assertTrue(globalNavigation.isSearchInputVisible());
    Assert.assertTrue(globalNavigation.isUserAvatarVisible());
    Assert.assertTrue(globalNavigation.isNotificationsIconVisible());
    Assert.assertTrue(globalNavigation.isStartWikiButtonVisible());
    Assert.assertFalse(globalNavigation.isCommunityCentralLinkVisible());
    Assert.assertFalse(globalNavigation.isAccountMenuVisible());
}
Also used : HomePage(com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage) GlobalNavigation(com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

HomePage (com.wikia.webdriver.pageobjectsfactory.pageobject.HomePage)13 Test (org.testng.annotations.Test)13 Execute (com.wikia.webdriver.common.core.annotations.Execute)8 GlobalNavigation (com.wikia.webdriver.pageobjectsfactory.pageobject.globalnav.GlobalNavigation)6 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)4 NetworkTrafficDump (com.wikia.webdriver.common.core.annotations.NetworkTrafficDump)2 SearchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject)2