use of com.wikia.webdriver.common.core.annotations.NetworkTrafficDump in project selenium-tests by Wikia.
the class TestAdsVuapMercury method adsImageClickedOpensNewPageMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@NetworkTrafficDump(useMITM = true)
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapMercury", groups = "AdsImageClickedOpensNewPageMercury")
public void adsImageClickedOpensNewPageMercury(Page page, String slotName, String iframeId, String videoUrl) {
networkTrafficInterceptor.startIntercepting();
AdsBaseObject ads = new AdsBaseObject(driver, urlBuilder.getUrlForPage(page));
scrollToSlot(slotName, ads);
ads.wait.forSuccessfulResponse(networkTrafficInterceptor, videoUrl);
VideoFanTakeover videoFanTakeover = new VideoFanTakeover(driver, iframeId, slotName);
videoFanTakeover.clickOnAdImage();
String tabUrl = ads.switchToNewBrowserTab();
videoFanTakeover.verifyFandomTabOpened(tabUrl);
}
use of com.wikia.webdriver.common.core.annotations.NetworkTrafficDump in project selenium-tests by Wikia.
the class TestAdsDetectionPageFair method adsDetectAdBlockPageFair.
@NetworkTrafficDump
@Test(groups = "AdsDetectAdBlockPageFair", dataProviderClass = AdsDataProvider.class, dataProvider = "adsDetectionPageFair")
public void adsDetectAdBlockPageFair(Page page) {
networkTrafficInterceptor.startIntercepting();
AdsPageFairObject adsBaseObject = new AdsPageFairObject(driver, page);
adsBaseObject.assertPageFairResponse(true, networkTrafficInterceptor);
}
use of com.wikia.webdriver.common.core.annotations.NetworkTrafficDump in project selenium-tests by Wikia.
the class TestAdsDetectionPageFair method adsDetectNoAdBlockPageFair.
@NetworkTrafficDump
@Test(groups = "AdsDetectNoAdBlockPageFair", dataProviderClass = AdsDataProvider.class, dataProvider = "adsDetectionPageFair")
public void adsDetectNoAdBlockPageFair(Page page) {
networkTrafficInterceptor.startIntercepting();
AdsPageFairObject adsBaseObject = new AdsPageFairObject(driver, page);
adsBaseObject.assertPageFairResponse(false, networkTrafficInterceptor);
}
use of com.wikia.webdriver.common.core.annotations.NetworkTrafficDump 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.common.core.annotations.NetworkTrafficDump in project selenium-tests by Wikia.
the class TestAdsVuapMercury method adsVideoClosedAfterPlayingMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@NetworkTrafficDump(useMITM = true)
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapMercury", groups = "AdsTopAdVideoClosesWhenFinishPlaysMercury")
public void adsVideoClosedAfterPlayingMercury(Page page, String slotName, String iframeId, String videoUrl) {
networkTrafficInterceptor.startIntercepting();
AdsBaseObject ads = new AdsBaseObject(driver, urlBuilder.getUrlForPage(page));
scrollToSlot(slotName, ads);
ads.wait.forSuccessfulResponse(networkTrafficInterceptor, videoUrl);
VideoFanTakeover videoFanTakeover = new VideoFanTakeover(driver, iframeId, slotName);
videoFanTakeover.play();
videoFanTakeover.waitForVideoPlayerHidden();
}
Aggregations