use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsVuapOasis method adsVuapVideoClosesWhenTapCloseButtonOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsVuapDesktop", groups = "AdsVuapVideoClosesWhenTapCloseButtonOasis")
public void adsVuapVideoClosesWhenTapCloseButtonOasis(Page page, String slotName, String iframeId) {
AdsBaseObject ads = new AdsBaseObject(driver, urlBuilder.getUrlForPage(page), WindowSize.DESKTOP);
scrollToSlot(slotName, ads);
VideoFanTakeover videoFanTakeover = new VideoFanTakeover(driver, iframeId, slotName);
videoFanTakeover.play();
videoFanTakeover.clickOnVideoCloseButton();
videoFanTakeover.waitForVideoPlayerHidden();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsRefreshing method floatingMR.
@Test(groups = { "AdsRefreshingFMR" })
public void floatingMR() {
AdsBaseObject page = new AdsBaseObject(driver, urlBuilder.getUrlForPath(WIKI_NAME, PATH), WindowSize.DESKTOP);
scrollToSeeFMR(AdsContent.FLOATING_MEDREC, page);
page.verifyAdChainForSlot(CREATIVE_ID_CHAIN, AdsContent.FLOATING_MEDREC, page);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsRoadblocksAfterMultiplePageViewsOasis method adsTestRoadblockOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "roadblocks", groups = "AdsTestRoadblocksOasis")
public void adsTestRoadblockOasis(String wikiName, String article, Dimension windowResolution, String expectedAdSkinLeftPartPath, String expectedAdSkinRightPartPath, String backgroundColor, String middleColor) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsBaseObject wikiPage = new AdsBaseObject(driver, testedPage, windowResolution);
for (int i = 0; i < PAGE_VIEWS_COUNT; i++) {
wikiPage.verifyTopLeaderboard();
wikiPage.verifyMedrec();
wikiPage.verifySkin(expectedAdSkinLeftPartPath, expectedAdSkinRightPartPath, backgroundColor, middleColor);
}
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsSkinPresence method verifySkin.
private void verifySkin(String wikiName, String article, Dimension resolution, String expectedLeftSide, String expectedRightSide, String backgroundColor, String middleColor) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
PageObjectLogging.log("Window resolution: ", String.valueOf(resolution.width), true);
AdsBaseObject adsBaseObject = new AdsBaseObject(driver, testedPage, resolution);
adsBaseObject.verifySkin(expectedLeftSide, expectedRightSide, backgroundColor, middleColor);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsSpotlights method adsSpotlightsOasis.
@Test(dataProvider = "spotlights", dataProviderClass = AdsDataProvider.class, groups = { "AdsSpotlightsOasis" })
public void adsSpotlightsOasis(String wikiName, String article) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsBaseObject wikiPage = new AdsBaseObject(driver, testedPage);
wikiPage.scrollToPosition(WIKIA_FOOTER);
wikiPage.verifySpotlights();
}
Aggregations