use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsBtfBlocking method adsAtfDelayBtfOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "delayBtf", groups = "AdsBtfBlockingOasis")
@RelatedIssue(issueID = "ADEN-4344")
public void adsAtfDelayBtfOasis(String wikiName, String article, boolean isWgVarOn) throws InterruptedException {
PageObjectLogging.log("$wgAdDriverDelayBelowTheFold", String.valueOf(isWgVarOn), true);
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsBaseObject adsBaseObject = new AdsBaseObject(driver, testedPage, DESKTOP_PAGE_SIZE);
adsBaseObject.waitForPageLoadedWithGpt();
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.MEDREC), AdsContent.MEDREC);
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.TOP_LB), AdsContent.TOP_LB);
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.INVISIBLE_SKIN), AdsContent.INVISIBLE_SKIN);
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.PREFOOTER_LEFT), AdsContent.PREFOOTER_LEFT);
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.PREFOOTER_RIGHT), AdsContent.PREFOOTER_RIGHT);
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.LEFT_SKYSCRAPPER_2), AdsContent.LEFT_SKYSCRAPPER_2);
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.FLOATING_MEDREC), AdsContent.FLOATING_MEDREC);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsMonitoringOasis method AdsMonitoringOasis.
@Test(groups = { "AdsMonitoringOasis" }, dataProviderClass = AdsDataProvider.class, dataProvider = "popularSites")
public void AdsMonitoringOasis(String wikiName, String path) {
String testedPage = urlBuilder.getUrlForPath(wikiName, path);
AdsBaseObject wikiPage = new AdsBaseObject(driver, testedPage, BROWSER_DIMENSION);
wikiPage.verifyMedrec();
wikiPage.verifyTopLeaderboard();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsMonocolor method adsMonocolorOasis.
@Test(groups = "AdsMonocolorOasis", dataProviderClass = AdsDataProvider.class, dataProvider = "adsMonocolorOasis")
public void adsMonocolorOasis(String wikiName, String pageName) {
String testPage = urlBuilder.getUrlForPath(wikiName, pageName);
AdsBaseObject adsBaseObject = new AdsBaseObject(driver, testPage);
adsBaseObject.verifyMonocolorAd(AdsContent.TOP_LB);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsOnSpecial method TestAdsOnSpecialPages.
@Test(groups = { "TestAdsOnSpecialPages" }, dataProviderClass = AdsDataProvider.class, dataProvider = "specialPages")
public void TestAdsOnSpecialPages(String wikiName, String article, String lineItemId, String adUnit, String leaderboardSlot, String prefooterSlot, Dimension resolution) throws Exception {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsBaseObject ads = new AdsBaseObject(driver, testedPage, resolution);
ads.verifyGptIframe(adUnit, leaderboardSlot, "gpt");
ads.verifyGptAdInSlot(leaderboardSlot, lineItemId, "");
ads.verifyGptIframe(adUnit, prefooterSlot, "gpt");
ads.verifyGptAdInSlot(prefooterSlot, lineItemId, "");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject in project selenium-tests by Wikia.
the class TestAdsBtfBlocking method adsAtfOnTabletOasis.
/**
* https://wikia-inc.atlassian.net/browse/ADEN-2156 Test whether ads on small screens are
* displayed when wgAdDriverDelayBelowTheFold is enabled
*/
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "disableBtf", groups = "AdsBtfBlockingOasis")
public void adsAtfOnTabletOasis(String wikiName, String article, boolean isWgVarOn) {
PageObjectLogging.log("$wgAdDriverDelayBelowTheFold", String.valueOf(isWgVarOn), true);
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsBaseObject adsBaseObject = new AdsBaseObject(driver, testedPage, TABLET_PAGE_SIZE);
adsBaseObject.waitForPageLoadedWithGpt();
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.TOP_LB), AdsContent.TOP_LB);
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.PREFOOTER_LEFT), AdsContent.PREFOOTER_LEFT);
Assertion.assertTrue(adsBaseObject.checkSlotOnPageLoaded(AdsContent.PREFOOTER_RIGHT), AdsContent.PREFOOTER_RIGHT);
}
Aggregations