use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsTaboolaObject in project selenium-tests by Wikia.
the class TestAdsRecoverySourcePointOasis method adsRecoverySourcePointOasisHopToTaboola.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsRecoverySourcePointOasisHopToTaboola", groups = "AdsRecoverySourcePointOasis")
public void adsRecoverySourcePointOasisHopToTaboola(Page page, Map<String, Object> slotInfo) {
String slotName = slotInfo.get("slotName").toString();
String adUnitId = slotInfo.get("adUnitId").toString();
String url = urlBuilder.getUrlForPage(page);
AdsRecoveryObject adsBaseObject = new AdsRecoveryObject(driver, url, WindowSize.DESKTOP);
adsBaseObject.refreshPageAddingCacheBuster();
adsBaseObject.waitForRecoveredSlot(slotName);
String recoveredAdUnitIdSelector = "#" + adsBaseObject.getRecoveredAdUnitId(adUnitId);
adsBaseObject.triggerAdSlot(slotName).verifyNoAd(recoveredAdUnitIdSelector);
AdsTaboolaObject adsTaboolaObject = new AdsTaboolaObject(driver);
adsTaboolaObject.verifyTaboolaContainer(AdsTaboolaObject.ABOVE_ARTICLE_CSS_SELECTOR);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsTaboolaObject in project selenium-tests by Wikia.
the class TestAdsTaboolaOasis method adsTaboolaOasis.
@NetworkTrafficDump
@Test(groups = "AdsTaboolaOasis")
public void adsTaboolaOasis() {
String testedPage = urlBuilder.getUrlForPath("project43", "SyntheticTests/Taboola?InstantGlobals.wgAdDriverPageFairRecoveryCountries=[]&InstantGlobals.wgAdDriverSourcePointRecoveryCountries=[]");
networkTrafficInterceptor.startIntercepting();
AdsTaboolaObject adsTaboolaObject = new AdsTaboolaObject(driver);
adsTaboolaObject.getUrl(testedPage);
adsTaboolaObject.verifyTaboolaContainer(AdsTaboolaObject.ABOVE_ARTICLE_CSS_SELECTOR);
adsTaboolaObject.verifyTaboolaContainer(AdsTaboolaObject.BELOW_ARTICLE_CSS_SELECTOR);
adsTaboolaObject.wait.forSuccessfulResponse(networkTrafficInterceptor, AdsTaboolaObject.TABOOLA_LOADER_REQUEST);
PageObjectLogging.log("adsTaboolaOasis", "Taboola loader.js has been requested", true);
}
Aggregations