Search in sources :

Example 1 with AdsEvolveObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject in project selenium-tests by Wikia.

the class TestAdsEvolveMercury method adsEvolveMercury.

@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "evolveTestPage")
public void adsEvolveMercury(String wikiName, String article) {
    AdsEvolveObject wikiPage = new AdsEvolveObject(driver);
    String testedPage = urlBuilder.getUrlForPath(wikiName, article);
    wikiPage.enableEvolve(testedPage);
    wikiPage.verifyEvolveCallMercury();
}
Also used : AdsEvolveObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject) Test(org.testng.annotations.Test)

Example 2 with AdsEvolveObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject in project selenium-tests by Wikia.

the class TestDfpParamsPresent method dfpEvolveParamsPresentOasis.

@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "dfpEvolveParamsOasis", groups = { "Ads", "AdsEvolveOasis" })
public void dfpEvolveParamsPresentOasis(String wikiName, String article, Integer dfpClientId, String adUnit, String slot, List<String> pageParams, List<String> slotParams) {
    AdsEvolveObject ads = new AdsEvolveObject(driver);
    String testedPage = urlBuilder.getUrlForPath(wikiName, article);
    ads.enableEvolve(testedPage);
    ads.verifyGptIframe(dfpClientId, adUnit, slot);
    ads.verifyGptParams(slot, pageParams, slotParams);
}
Also used : AdsEvolveObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject) Test(org.testng.annotations.Test)

Example 3 with AdsEvolveObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject in project selenium-tests by Wikia.

the class TestNoAdsOnAdFreeWikis method TestNoAdsOnAdsFreeWikis_AU.

@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "adFreeWikis", groups = { "TestNoAdsOnAdsFreeWikis_AU" })
public void TestNoAdsOnAdsFreeWikis_AU(String wikiName, String path) {
    String testedPage = urlBuilder.getUrlForPath(wikiName, path);
    AdsEvolveObject wikiPage = new AdsEvolveObject(driver);
    wikiPage.enableEvolve(testedPage);
    wikiPage.verifyNoAdsOnPage();
}
Also used : AdsEvolveObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject) Test(org.testng.annotations.Test)

Example 4 with AdsEvolveObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject in project selenium-tests by Wikia.

the class TestAdsEvolveOasis method adsEvolveOasis.

@UseUnstablePageLoadStrategy
@Test(dataProviderClass = AdsDataProvider.class, groups = "AdsEvolveOasis", dataProvider = "evolveTestPage")
public void adsEvolveOasis(String wikiName, String article) {
    AdsEvolveObject wikiPage = new AdsEvolveObject(driver);
    String testedPage = urlBuilder.getUrlForPath(wikiName, article);
    wikiPage.enableEvolve(testedPage);
    wikiPage.verifyEvolveCallOasis();
}
Also used : AdsEvolveObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject) UseUnstablePageLoadStrategy(com.wikia.webdriver.common.driverprovider.UseUnstablePageLoadStrategy) Test(org.testng.annotations.Test)

Example 5 with AdsEvolveObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject in project selenium-tests by Wikia.

the class TestAdsDfpParamsPresentMercury method dfpEvolveParamsPresentMercury.

@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = MobileAdsDataProvider.class, dataProvider = "dfpEvolveParamsMercury", groups = { "MobileAds", "AdsEvolveMercury" })
public void dfpEvolveParamsPresentMercury(String wikiName, String article, Integer dfpClientId, String adUnit, String slot, List<String> pageParams, List<String> slotParams) {
    AdsEvolveObject ads = new AdsEvolveObject(driver);
    String testedPage = urlBuilder.getUrlForPath(wikiName, article);
    ads.enableEvolve(testedPage);
    ads.verifyGptIframe(dfpClientId, adUnit, slot);
    ads.verifyGptParams(slot, pageParams, slotParams);
}
Also used : AdsEvolveObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Aggregations

AdsEvolveObject (com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsEvolveObject)5 Test (org.testng.annotations.Test)5 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)1 UseUnstablePageLoadStrategy (com.wikia.webdriver.common.driverprovider.UseUnstablePageLoadStrategy)1