use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsFandomObject in project selenium-tests by Wikia.
the class TestAdsFandomBtfBlock method adsFandomBtfBlockMobile.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "fandomBtfBlockPage", groups = { "AdsFandomBtfBlockMobile" })
public void adsFandomBtfBlockMobile(String article) {
AdsFandomObject fandomPage = loadPage(article);
fandomPage.triggerOnScrollSlots();
fandomPage.verifySlot(AdsFandomContent.TOP_LEADERBOARD);
fandomPage.verifySlot(AdsFandomContent.TOP_BOXAD_MOBILE);
Assertion.assertTrue(areBtfSlotsHidden(fandomPage), "BTF ads are displayed");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsFandomObject in project selenium-tests by Wikia.
the class TestAdsFandomUap method adsFandomArticleUapMobile.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "fandomArticleUapPage", groups = { "AdsFandomUapMobile" })
@RelatedIssue(issueID = "ADEN-4339")
public void adsFandomArticleUapMobile(String pageType, String pageName, long atfId, long btfId) {
AdsFandomObject fandomPage = loadPage(pageName, pageType);
fandomPage.triggerOnScrollSlots();
verifyUapAtf(atfId, AdsFandomContent.TOP_BOXAD_MOBILE, fandomPage);
fandomPage.triggerOnScrollSlots();
verifyUapBtf(btfId, AdsFandomContent.INCONTENT_BOXAD_MOBILE, AdsFandomContent.BOTTOM_LEADERBOARD_MOBILE, fandomPage);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsFandomObject in project selenium-tests by Wikia.
the class TestAdsVuapFandom method adsVuapTimeProgressingFandom.
@NetworkTrafficDump
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPage", groups = { "AdsVuapFandomDesktop", "AdsVuapTimeProgressingFandom" })
public void adsVuapTimeProgressingFandom(String pageType, String pageName, String slotName, String iframeId) throws InterruptedException {
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
videoFandomPage(slotName).verifyIsVideoTimeProgresingOnDesktop(networkTrafficInterceptor, videoFanTakeover);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsFandomObject in project selenium-tests by Wikia.
the class TestAdsVuapFandom method adsVuapCheckSlotSizesFandom.
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPage", groups = { "AdsVuapFandomDesktop", "AdsVuapCheckSlotSizesFamdom" })
public void adsVuapCheckSlotSizesFandom(String pageType, String pageName, String slotName, String iframeId) throws InterruptedException {
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
videoFandomPage(slotName).verifySlotSizesVuap(videoFanTakeover);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsFandomObject in project selenium-tests by Wikia.
the class TestAdsVuapFandom method adsVuapTimeProgressingFandomMobile.
@NetworkTrafficDump(useMITM = true)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPageMobile", groups = { "AdsVuapFandomMobile", "AdsVuapTimeProgressingFandomMobile" })
public void adsVuapTimeProgressingFandomMobile(String pageType, String pageName, String slotName, String iframeId, String videoUrl) throws InterruptedException {
networkTrafficInterceptor.startIntercepting();
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
fandomPage.wait.forSuccessfulResponse(networkTrafficInterceptor, videoUrl);
videoFandomPage(slotName).verifyIsVideoTimeProgresingOnMobile(networkTrafficInterceptor, videoFanTakeover);
}
Aggregations