use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class TestAdsFandomUap method adsFandomHubUapMobile.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "fandomHubUapPage", groups = { "AdsFandomUapMobile" })
@RelatedIssue(issueID = "ADEN-4339")
public void adsFandomHubUapMobile(String pageType, String pageName, long atfId, long btfId) {
AdsFandomObject fandomPage = loadPage(pageName, pageType);
fandomPage.triggerOnScrollSlots();
verifyUapAtf(atfId, AdsFandomContent.TOP_BOXAD, fandomPage);
verifyUapBtf(btfId, AdsFandomContent.INCONTENT_BOXAD_MOBILE, AdsFandomContent.BOTTOM_LEADERBOARD, fandomPage);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class TestAdsGptPageParam method adsGptPageParamMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsGptPageParam", groups = "AdsGptPageParamMercury")
@UseUnstablePageLoadStrategy
public void adsGptPageParamMercury(String wikiName, String article, String gptPattern, Boolean paramShouldPresent) {
AdsBaseObject wikiPage = new AdsBaseObject(driver, urlBuilder.getUrlForPath(wikiName, article));
String gptPageParams = wikiPage.getGptPageParams(AdsContent.MOBILE_TOP_LB);
if (paramShouldPresent) {
Assertion.assertStringContains(gptPageParams, gptPattern);
} else {
Assertion.assertStringNotContains(gptPageParams, gptPattern);
}
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class TestAdsDfpParamsPresentMercury method dfpParamsPresentSyntheticMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = MobileAdsDataProvider.class, dataProvider = "dfpParamsSynthetic", groups = { "MobileAds", "AdsDfpParamsPresentSyntheticMercury" })
public void dfpParamsPresentSyntheticMercury(String wikiName, String article, String queryString, String adUnit, String slot, List<String> pageParams, List<String> slotParams) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
if (StringUtils.isNotEmpty(queryString)) {
testedPage = urlBuilder.appendQueryStringToURL(testedPage, queryString);
}
AdsBaseObject ads = new AdsBaseObject(driver, testedPage);
ads.verifyGptIframe(adUnit, slot, SRC_MOBILE);
ads.verifyGptParams(slot, pageParams, slotParams);
ads.verifyGptAdInSlot(slot, LINE_ITEM_ID, CREATIVE_ID);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class TestAdsFandom method adsFandomAdsMobile.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "fandomAds", groups = { "AdsMobilePresenceFandom", "AdsMobileFandom" })
public void adsFandomAdsMobile(String pageType, String pageName) {
AdsFandomObject fandomPage = loadPage(pageName, pageType);
verifySlotsOnMobile(fandomPage, pageType);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser 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);
}
Aggregations