use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsFandomObject in project selenium-tests by Wikia.
the class TestAdsFandomBtfBlock method adsFandomBtfBlockDesktop.
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "fandomBtfBlockPage", groups = { "AdsFandomBtfBlockDesktop" })
public void adsFandomBtfBlockDesktop(String article) {
AdsFandomObject fandomPage = loadPage(article);
fandomPage.triggerOnScrollSlots();
fandomPage.verifySlot(AdsFandomContent.TOP_LEADERBOARD);
fandomPage.verifySlot(AdsFandomContent.TOP_BOXAD_DESKTOP);
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 TestAdsVuapFandom method adsImageClickedOpensNewPageFandomMobile.
@NetworkTrafficDump(useMITM = true)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPageMobile", groups = { "AdsVuapFandomMobile", "AdsImageClickedOpensNewPageFandomMobile" })
public void adsImageClickedOpensNewPageFandomMobile(String pageType, String pageName, String slotName, String iframeId, String videoUrl) {
networkTrafficInterceptor.startIntercepting();
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
fandomPage.wait.forSuccessfulResponse(networkTrafficInterceptor, videoUrl);
videoFandomPage(slotName).verifyFandomPageOpened(videoFanTakeover);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsFandomObject in project selenium-tests by Wikia.
the class TestAdsVuapFandom method adsVuapVideoClosesWhenTapCloseButtonFandomMobile.
@NetworkTrafficDump(useMITM = true)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPageMobile", groups = { "AdsVuapFandomMobile", "AdsVuapVideoClosesWhenTapCloseButtonFandomMobile" })
public void adsVuapVideoClosesWhenTapCloseButtonFandomMobile(String pageType, String pageName, String slotName, String iframeId, String videoUrl) {
networkTrafficInterceptor.startIntercepting();
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
fandomPage.wait.forSuccessfulResponse(networkTrafficInterceptor, videoUrl);
videoFandomPage(slotName).verifyVideoClosesAfterTapOnCloseButton(videoFanTakeover);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsFandomObject in project selenium-tests by Wikia.
the class TestAdsVuapFandom method adsVideoClosedAfterPlayingFandom.
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPage", groups = { "AdsVuapFandomDesktop", "AdsVideoClosedAfterPlayingFandom" })
public void adsVideoClosedAfterPlayingFandom(String pageType, String pageName, String slotName, String iframeId) {
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
videoFanTakeover.play();
videoFanTakeover.waitForVideoPlayerHidden();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsFandomObject in project selenium-tests by Wikia.
the class TestAdsVuapFandom method adsVuapVideoClosesWhenTapCloseButtonFandom.
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPage", groups = { "AdsVuapFandomDesktop", "AdsVuapVideoClosesWhenTapCloseButtonFandom" })
public void adsVuapVideoClosesWhenTapCloseButtonFandom(String pageType, String pageName, String slotName, String iframeId) {
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
videoFandomPage(slotName).verifyVideoClosesAfterTapOnCloseButton(videoFanTakeover);
}
Aggregations