use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestNoAdsForUsers method noAdsForUsers.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "noAdsForUsers", groups = "NoAdsForUsers")
@Execute(asUser = User.USER)
public void noAdsForUsers(String wikiName, String path) {
String testedPage = urlBuilder.getUrlForPath(wikiName, path);
AdsBaseObject wikiPage = new AdsBaseObject(driver, testedPage);
wikiPage.verifyNoAdsOnPage();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsVuapTheNewGeneration method vuapDefaultStateShouldStartPlayingAdvertisementAutomatically.
@Test(groups = { "AdsVuapDefaultStateTng", "AdsVuapDefaultStateAutoplayOasis" }, dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapTngDesktop")
public void vuapDefaultStateShouldStartPlayingAdvertisementAutomatically(Page page, String slot, String videoIframeSelector) {
AdsBaseObject ads = openPageWithVideoInLocalStorage(page);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
scrollToSlot(slot, ads);
VuapAssertions.verifyVideoPlay(vuap);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsVuapTheNewGeneration method vuapResolvedStateIsNotMute.
@Test(groups = { "AdsVuapResolvedStateTng", "AdsVuapResolvedStateIsNotMuteOasis" }, dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapTngDesktop")
public void vuapResolvedStateIsNotMute(Page page, String slot, String videoIframeSelector) {
AdsBaseObject ads = openPageWithVideoInLocalStorage(page);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
ads.refreshPage();
scrollToSlot(slot, ads);
vuap.replay();
vuap.mute();
VuapAssertions.verifyVideoUnmuteAndMute(vuap);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsVuapTheNewGeneration method vuapDefaultStateShouldHaveLinkToProject43ArticleOnImage.
@Test(groups = { "AdsVuapDefaultStateTng", "AdsVuapDefaultStateClickOasis" }, dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapTngDesktop")
public void vuapDefaultStateShouldHaveLinkToProject43ArticleOnImage(Page page, String slot, String videoIframeSelector) {
AdsBaseObject ads = openPageWithVideoInLocalStorage(page);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
scrollToSlot(slot, ads);
vuap.clickOnClickArea2();
final String actual = ads.switchToNewBrowserTab();
Assert.assertTrue(actual.equals(PROJECT43_TNG_ARTICLE_LINK), "Image should point to page on project43.");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsVuapTheNewGeneration method vuapDefaultStateShouldProgressInTime.
@Test(groups = { "AdsVuapDefaultStateTng", "AdsVuapDefaultStateTimeProgressOasis" }, dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapTngDesktop")
public void vuapDefaultStateShouldProgressInTime(Page page, String slot, String videoIframeSelector) {
AdsBaseObject ads = openPageWithVideoInLocalStorage(page);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
scrollToSlot(slot, ads);
VuapAssertions.verifyVideoTimeIsProgressing(vuap);
}
Aggregations