Search in sources :

Example 1 with AdsPrebidObject

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);
}
Also used : AdsPrebidObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPrebidObject) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 2 with AdsPrebidObject

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);
}
Also used : AdsPrebidObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPrebidObject) Test(org.testng.annotations.Test)

Example 3 with AdsPrebidObject

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);
}
Also used : AdsPrebidObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPrebidObject) NetworkTrafficDump(com.wikia.webdriver.common.core.annotations.NetworkTrafficDump) Test(org.testng.annotations.Test)

Aggregations

AdsPrebidObject (com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPrebidObject)3 Test (org.testng.annotations.Test)3 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)1 NetworkTrafficDump (com.wikia.webdriver.common.core.annotations.NetworkTrafficDump)1