use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPrebidObject in project selenium-tests by Wikia.
the class TestAdsPrebid method adsPrebidMercury.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "prebidCustomAdapter", groups = "AdsPrebidMercury")
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void adsPrebidMercury(String wiki, String article) {
String url = urlBuilder.getUrlForPath(wiki, article);
url = urlBuilder.appendQueryStringToURL(url, "wikia_adapter=831");
AdsPrebidObject prebidAds = new AdsPrebidObject(driver, url);
prebidAds.verifyKeyValues(AdsContent.MOBILE_TOP_LB, "wikia", "320x50", "8.30");
prebidAds.verifyPrebidCreative(AdsContent.MOBILE_TOP_LB, true);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPrebidObject in project selenium-tests by Wikia.
the class TestAdsPrebid method adsPrebidOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "prebidCustomAdapter", groups = "AdsPrebidOasis")
public void adsPrebidOasis(String wiki, String article) {
String url = urlBuilder.getUrlForPath(wiki, article);
url = urlBuilder.appendQueryStringToURL(url, "wikia_adapter=1881");
AdsPrebidObject prebidAds = new AdsPrebidObject(driver, url);
prebidAds.verifyKeyValues(AdsContent.TOP_LB, "wikia", "728x90", "18.50");
prebidAds.verifyPrebidCreative(AdsContent.TOP_LB, true);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPrebidObject in project selenium-tests by Wikia.
the class TestAdsPrebid method adsPrebidVelesDisplayedInTopLeaderboard.
@NetworkTrafficDump
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "prebidVelesAdapter", groups = "AdsPrebidVelesOasis")
public void adsPrebidVelesDisplayedInTopLeaderboard(String wiki, String article, Integer lineItemId) {
networkTrafficInterceptor.startIntercepting();
String url = urlBuilder.getUrlForPath(wiki, article);
AdsPrebidObject prebidAds = new AdsPrebidObject(driver, url);
prebidAds.verifyKeyValues(AdsContent.TOP_LB, "veles", "640x480", "20.00");
prebidAds.wait.forSuccessfulResponse(networkTrafficInterceptor, STARTED_EVENT);
prebidAds.verifyLineItemId(AdsContent.TOP_LB, lineItemId);
}
Aggregations