use of com.wikia.webdriver.pageobjectsfactory.componentobject.ad.AutoplayVuap in project selenium-tests by Wikia.
the class TestAdsVuapTheNewGeneration method vuapResolvedStateShouldHaveLinkToProject43ArticleOnImage.
@Test(groups = { "AdsVuapResolvedStateTng", "AdsVuapResolvedStateClickOasis" }, dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapTngDesktop")
public void vuapResolvedStateShouldHaveLinkToProject43ArticleOnImage(Page page, String slot, String videoIframeSelector) {
final AdsBaseObject ads = openPageWithVideoInLocalStorage(page);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
ads.refreshPage();
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.componentobject.ad.AutoplayVuap in project selenium-tests by Wikia.
the class TestAdsVuapResolvedState method vuapResolvedStateShouldHaveLinkToFandomOnImage.
@Test(groups = "AdsVuapResolvedStateClickOasis", dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapResolvedStateDesktop")
public void vuapResolvedStateShouldHaveLinkToFandomOnImage(Page page, String slot, String videoIframeSelector) {
final String expected = "http://www.wikia.com/fandom";
final AdsBaseObject ads = new AdsBaseObject(driver, urlBuilder.getUrlForPage(page), WindowSize.DESKTOP);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
ads.refreshPage();
vuap.clickOnAdImageResolvedState();
final String actual = ads.switchToNewBrowserTab();
Assert.assertTrue(actual.equals(expected), "Image should point to page on fandom.");
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.ad.AutoplayVuap in project selenium-tests by Wikia.
the class TestAdsVuapResolvedState method vuapDefaultStateShouldProgressInTime.
@Test(groups = "AdsVuapDefaultStateTimeProgressOasis", dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapResolvedStateDesktop")
public void vuapDefaultStateShouldProgressInTime(Page page, String slot, String videoIframeSelector) {
new AdsBaseObject(driver, urlBuilder.getUrlForPage(page), WindowSize.DESKTOP);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
VuapAssertions.verifyVideoTimeIsProgressing(vuap);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.ad.AutoplayVuap in project selenium-tests by Wikia.
the class TestAdsVuapTheNewGeneration method vuapResolvedStateShouldHaveLinkToFandomArticleOnImage.
@Test(groups = { "AdsVuapResolvedStateTng", "AdsVuapResolvedStateClickOasis" }, dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapTngDesktop")
public void vuapResolvedStateShouldHaveLinkToFandomArticleOnImage(Page page, String slot, String videoIframeSelector) {
final AdsBaseObject ads = openPageWithVideoInLocalStorage(page);
final AutoplayVuap vuap = new AutoplayVuap(driver, slot, videoIframeSelector);
ads.refreshPage();
scrollToSlot(slot, ads);
vuap.clickOnClickArea4();
final String actual = ads.switchToNewBrowserTab();
Assert.assertTrue(actual.equals(FANDOM_ARTICLE_WESTWORLD_LINK), "Image should point to page on fandom.");
}
Aggregations