Search in sources :

Example 1 with AdsPageFairObject

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

the class TestAdsDetectionPageFair method adsDetectAdBlockPageFair.

@NetworkTrafficDump
@Test(groups = "AdsDetectAdBlockPageFair", dataProviderClass = AdsDataProvider.class, dataProvider = "adsDetectionPageFair")
public void adsDetectAdBlockPageFair(Page page) {
    networkTrafficInterceptor.startIntercepting();
    AdsPageFairObject adsBaseObject = new AdsPageFairObject(driver, page);
    adsBaseObject.assertPageFairResponse(true, networkTrafficInterceptor);
}
Also used : AdsPageFairObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPageFairObject) NetworkTrafficDump(com.wikia.webdriver.common.core.annotations.NetworkTrafficDump) Test(org.testng.annotations.Test)

Example 2 with AdsPageFairObject

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

the class TestAdsDetectionPageFair method adsDetectNoAdBlockPageFair.

@NetworkTrafficDump
@Test(groups = "AdsDetectNoAdBlockPageFair", dataProviderClass = AdsDataProvider.class, dataProvider = "adsDetectionPageFair")
public void adsDetectNoAdBlockPageFair(Page page) {
    networkTrafficInterceptor.startIntercepting();
    AdsPageFairObject adsBaseObject = new AdsPageFairObject(driver, page);
    adsBaseObject.assertPageFairResponse(false, networkTrafficInterceptor);
}
Also used : AdsPageFairObject(com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPageFairObject) NetworkTrafficDump(com.wikia.webdriver.common.core.annotations.NetworkTrafficDump) Test(org.testng.annotations.Test)

Aggregations

NetworkTrafficDump (com.wikia.webdriver.common.core.annotations.NetworkTrafficDump)2 AdsPageFairObject (com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.AdsPageFairObject)2 Test (org.testng.annotations.Test)2