use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsRecoveryObject in project selenium-tests by Wikia.
the class TestAdsPageFairRecoveryOasis method adsRecoveryLoggedInPageFairOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsRecoveryPageFairOasis", groups = "AdsRecoveryLoggedInPageFairOasis")
@Execute(asUser = User.USER_2)
public void adsRecoveryLoggedInPageFairOasis(Page page) {
String url = urlBuilder.getUrlForPage(page);
AdsRecoveryObject adsRecoveryObject = new AdsRecoveryObject(driver, url, DESKTOP_SIZE);
adsRecoveryObject.refreshPageAddingCacheBuster();
adsRecoveryObject.verifyPageFairRecoveryNoMarkersOnPage();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsRecoveryObject in project selenium-tests by Wikia.
the class TestAdsRecoverySourcePointOasis method adsRecoverySourcePointOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsRecoverySourcePointOasis", groups = "AdsRecoverySourcePointOasis")
public void adsRecoverySourcePointOasis(Page page, Map<String, Object> slotInfo) {
String adUnitId = slotInfo.get("adUnitId").toString();
String slotName = slotInfo.get("slotName").toString();
String url = urlBuilder.getUrlForPage(page);
AdsRecoveryObject adsBaseObject = new AdsRecoveryObject(driver, url, WindowSize.DESKTOP);
adsBaseObject.refreshPageAddingCacheBuster();
adsBaseObject.waitForRecoveredSlot(slotName);
String recoveredAdUnitIdSelector = "#" + adsBaseObject.getRecoveredAdUnitId(adUnitId);
WebElement recoveredSlot = driver.findElement(By.cssSelector(recoveredAdUnitIdSelector));
adsBaseObject.triggerAdSlot(slotName).verifyLineItemId(slotName, Integer.valueOf(slotInfo.get("lineItemId").toString())).verifyExpandedAdVisibleInSlot(recoveredAdUnitIdSelector, recoveredSlot);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsRecoveryObject in project selenium-tests by Wikia.
the class TestAdsRecoverySourcePointOasis method adsRecoverySourcePointOasisHopToTaboola.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsRecoverySourcePointOasisHopToTaboola", groups = "AdsRecoverySourcePointOasis")
public void adsRecoverySourcePointOasisHopToTaboola(Page page, Map<String, Object> slotInfo) {
String slotName = slotInfo.get("slotName").toString();
String adUnitId = slotInfo.get("adUnitId").toString();
String url = urlBuilder.getUrlForPage(page);
AdsRecoveryObject adsBaseObject = new AdsRecoveryObject(driver, url, WindowSize.DESKTOP);
adsBaseObject.refreshPageAddingCacheBuster();
adsBaseObject.waitForRecoveredSlot(slotName);
String recoveredAdUnitIdSelector = "#" + adsBaseObject.getRecoveredAdUnitId(adUnitId);
adsBaseObject.triggerAdSlot(slotName).verifyNoAd(recoveredAdUnitIdSelector);
AdsTaboolaObject adsTaboolaObject = new AdsTaboolaObject(driver);
adsTaboolaObject.verifyTaboolaContainer(AdsTaboolaObject.ABOVE_ARTICLE_CSS_SELECTOR);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsRecoveryObject in project selenium-tests by Wikia.
the class TestAdsPageFairRecoveryOasis method adsRecoveryPageFairOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsRecoveryPageFairOasis", groups = "AdsRecoveryPageFairOasis")
public void adsRecoveryPageFairOasis(Page page) {
String url = urlBuilder.getUrlForPage(page);
AdsRecoveryObject adsRecoveryObject = new AdsRecoveryObject(driver, url, DESKTOP_SIZE);
adsRecoveryObject.refreshPageAddingCacheBuster();
adsRecoveryObject.verifyPageFairRecoveryWithAdBlock();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsRecoveryObject in project selenium-tests by Wikia.
the class TestAdsPageFairRecoveryOasis method adsRecoveryNoAdblockPageFairOasis.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adsRecoveryPageFairOasis", groups = "AdsRecoveryNoAdblockPageFairOasis")
public void adsRecoveryNoAdblockPageFairOasis(Page page) {
String url = urlBuilder.getUrlForPage(page);
AdsRecoveryObject adsRecoveryObject = new AdsRecoveryObject(driver, url, DESKTOP_SIZE);
adsRecoveryObject.refreshPageAddingCacheBuster();
adsRecoveryObject.verifyPageFairRecoveryWithNoAdBlock();
}
Aggregations