Search in sources :

Example 6 with AdsOoyalaObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsOoyalaObject in project selenium-tests by Wikia.

the class TestAdsPremiumPrerollOasis method adsPremiumPrerollOasis.

@NetworkTrafficDump(useMITM = true)
@Test(dataProviderClass = AdsDataProvider.class, groups = { "AdsPremiumPrerollOasis" }, dataProvider = "adsPremiumPreroll")
public void adsPremiumPrerollOasis(String wikiName, String article) {
    String testedPage = urlBuilder.getUrlForPath(wikiName, article);
    AdsOoyalaObject wikiPage = new AdsOoyalaObject(driver, testedPage);
    wikiPage.verifyPlayerOnPage();
    wikiPage.verifyPremiumPrerollRequest(networkTrafficInterceptor, wikiPage);
    wikiPage.verifyArticleAd();
    wikiPage.verifyArticleVideo();
}
Also used : AdsOoyalaObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsOoyalaObject) NetworkTrafficDump(com.wikia.webdriver.common.core.annotations.NetworkTrafficDump) Test(org.testng.annotations.Test)

Aggregations

AdsOoyalaObject (com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsOoyalaObject)6 Test (org.testng.annotations.Test)6 NetworkTrafficDump (com.wikia.webdriver.common.core.annotations.NetworkTrafficDump)2