use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsDfpParamsPresentMercury method dfpRubiconParamsPresentSyntheticMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = MobileAdsDataProvider.class, dataProvider = "dfpRubiconParamsSynthetic", groups = { "MobileAds", "AdsDfpParamsPresentSyntheticMercury" })
public void dfpRubiconParamsPresentSyntheticMercury(String wikiName, String article, String queryString, String adUnit, String slot, String patternParam43tierPrice, String patternParam44tierPrice) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
if (StringUtils.isNotEmpty(queryString)) {
testedPage = urlBuilder.appendQueryStringToURL(testedPage, queryString);
}
AdsBaseObject ads = new AdsBaseObject(driver, testedPage);
String currentGptSlotParams = ads.getGptParams(slot, "data-gpt-slot-params");
ads.verifyGptIframe(adUnit, slot, SRC_MOBILE);
Assertion.assertTrue(ads.areRubiconDfpParamsPresent(currentGptSlotParams, patternParam43tierPrice, patternParam44tierPrice), currentGptSlotParams + " does not contains " + patternParam43tierPrice + " or " + patternParam44tierPrice);
ads.verifyGptAdInSlot(slot, LINE_ITEM_ID, CREATIVE_ID);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsDfpParamsPresentMercury method dfpParamsPresentMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = MobileAdsDataProvider.class, dataProvider = "dfpParams", groups = { "MobileAds", "AdsDfpParamsPresentMercury" })
public void dfpParamsPresentMercury(String wikiName, String article, String adUnit, String slot, List<String> pageParams, List<String> slotParams) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsBaseObject ads = new AdsBaseObject(driver, testedPage);
ads.verifyGptIframe(adUnit, slot, SRC_MOBILE);
ads.verifyGptParams(slot, pageParams, slotParams);
}
Aggregations