Search in sources :

Example 1 with AdsOoyalaObject

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

the class TestAdsPremiumPrerollMercury method adsPremiumPrerollMercuryNoAds.

@Test(dataProviderClass = AdsDataProvider.class, groups = { "AdsPremiumPrerollMercury" }, dataProvider = "adsPremiumPreroll")
public void adsPremiumPrerollMercuryNoAds(String wikiName, String article) {
    String testedPage = urlBuilder.getUrlForPath(wikiName, article + "&noads=1");
    AdsOoyalaObject wikiPage = new AdsOoyalaObject(driver, testedPage);
    wikiPage.verifyPlayerOnPage();
    wikiPage.playArticleVideo();
    wikiPage.verifyArticleVideo();
}
Also used : AdsOoyalaObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsOoyalaObject) Test(org.testng.annotations.Test)

Example 2 with AdsOoyalaObject

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

the class TestAdsPremiumPrerollOasis method adsPremiumPrerollOasisNoAds.

@Test(dataProviderClass = AdsDataProvider.class, groups = { "AdsPremiumPrerollOasis" }, dataProvider = "adsPremiumPreroll")
public void adsPremiumPrerollOasisNoAds(String wikiName, String article) {
    String testedPage = urlBuilder.getUrlForPath(wikiName, article + "&noads=1");
    AdsOoyalaObject wikiPage = new AdsOoyalaObject(driver, testedPage);
    wikiPage.verifyPlayerOnPage();
    wikiPage.playArticleVideo();
    wikiPage.verifyArticleVideo();
}
Also used : AdsOoyalaObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsOoyalaObject) Test(org.testng.annotations.Test)

Example 3 with AdsOoyalaObject

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

the class TestAdsOoyalaOasis method adsOoyalaPrerollOasis.

@Test(dataProviderClass = AdsDataProvider.class, groups = { "AdsOoyalaPrerollOasis" }, dataProvider = "ooyalaAds")
public void adsOoyalaPrerollOasis(String wikiName, String article) {
    String testedPage = urlBuilder.getUrlForPath(wikiName, article);
    AdsOoyalaObject wikiPage = new AdsOoyalaObject(driver, testedPage);
    wikiPage.verifyLightboxAd();
    wikiPage.verifyLightboxVideo();
}
Also used : AdsOoyalaObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsOoyalaObject) Test(org.testng.annotations.Test)

Example 4 with AdsOoyalaObject

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

the class TestAdsOoyalaMercury method adsOoyalaPrerollMercury.

@Test(dataProviderClass = AdsDataProvider.class, groups = { "AdsOoyalaPrerollMercury" }, dataProvider = "ooyalaAds")
public void adsOoyalaPrerollMercury(String wikiName, String article) {
    String testedPage = urlBuilder.getUrlForPath(wikiName, article);
    AdsOoyalaObject wikiPage = new AdsOoyalaObject(driver, testedPage);
    wikiPage.playLightboxVideo();
    wikiPage.verifyLightboxAd();
    wikiPage.verifyLightboxVideo();
}
Also used : AdsOoyalaObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsOoyalaObject) Test(org.testng.annotations.Test)

Example 5 with AdsOoyalaObject

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

the class TestAdsPremiumPrerollMercury method adsPremiumPrerollMercury.

@NetworkTrafficDump(useMITM = true)
@Test(dataProviderClass = AdsDataProvider.class, groups = { "AdsPremiumPrerollMercury" }, dataProvider = "adsPremiumPreroll")
public void adsPremiumPrerollMercury(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