use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestDfpParamsPresent method dfpParamsPresentSyntheticOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "dfpParamsSynthetic", groups = { "DfpParamsPresentSyntheticOasis", "Ads" })
public void dfpParamsPresentSyntheticOasis(String wikiName, String article, String queryString, String adUnit, String slot, List<String> pageParams, List<String> slotParams) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
if (StringUtils.isNotEmpty(queryString)) {
testedPage = urlBuilder.appendQueryStringToURL(testedPage, queryString);
}
AdsBaseObject ads = new AdsBaseObject(driver, testedPage);
ads.verifyGptIframe(adUnit, slot, "gpt");
ads.verifyGptParams(slot, pageParams, slotParams);
ads.verifyGptAdInSlot(slot, LINE_ITEM_ID, CREATIVE_ID);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject 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.pageobject.adsbase.AdsBaseObject 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.pageobject.adsbase.AdsBaseObject 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.");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsAdXCollapse method adsAdTypeCollapseAdX.
@Test(dataProviderClass = AdTypeDataProvider.class, dataProvider = "adXcollapse", groups = "TestAdsAdXCollapse")
public void adsAdTypeCollapseAdX(String wikiName, String article, String adUnit, String[] slots) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsBaseObject ads = new AdsBaseObject(driver, testedPage);
for (String slotName : slots) {
ads.verifyGptIframe(adUnit, slotName, "gpt");
ads.verifyIframeSize(slotName, "gpt", 0, 0);
ads.verifyNoAd(AdsContent.getSlotSelector(slotName));
}
}
Aggregations