Search in sources :

Example 1 with SonySideViewObject

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

the class TestAdsNoAdsForSony method adsNoAdsForSonyMobile.

@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "noAdsForSony", groups = "AdsNoAdsForSonyMobile")
public void adsNoAdsForSonyMobile(String wikiName, String path) {
    String testedPage = urlBuilder.getUrlForPath(wikiName, path);
    SonySideViewObject sonyPage = new SonySideViewObject(driver);
    AdsBaseObject wikiPage = sonyPage.goToDestinationPage(testedPage);
    wikiPage.verifyNoAdsOnMobilePage();
}
Also used : AdsBaseObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject) SonySideViewObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.SonySideViewObject) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 2 with SonySideViewObject

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

the class TestAdsNoAdsForSony method adsNoAdsForSonyOasis.

@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "noAdsForSony", groups = "AdsNoAdsForSonyOasis")
public void adsNoAdsForSonyOasis(String wikiName, String path) {
    String testedPage = urlBuilder.getUrlForPath(wikiName, path);
    SonySideViewObject sonyPage = new SonySideViewObject(driver);
    AdsBaseObject wikiPage = sonyPage.goToDestinationPage(testedPage);
    wikiPage.verifyNoAdsOnPage();
}
Also used : AdsBaseObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject) SonySideViewObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.SonySideViewObject) Test(org.testng.annotations.Test)

Aggregations

AdsBaseObject (com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsBaseObject)2 SonySideViewObject (com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.SonySideViewObject)2 Test (org.testng.annotations.Test)2 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)1