示例#1
0
 @Test(
     dataProviderClass = com.springer.omelet.data.DataProvider.class,
     dataProvider = "Data",
     enabled = true)
 public void verifyCountOfZimFileLoaded(IBrowserConf browserConf, IProperty prop) {
   PageObjectFactory pof = new PageObjectFactory(Driver.getDriver(browserConf), prop);
   sassert.assertEquals(
       pof.libraryPage().load().isLoaded().countZimFileLoaded(),
       "1",
       "Check for the count of titles");
   sassert.assertAll();
 }
示例#2
0
 @Test(
     dataProviderClass = com.springer.omelet.data.DataProvider.class,
     dataProvider = "Data",
     enabled = true)
 public void verifyMetaDataOfZimFile(IBrowserConf browserConf, IProperty prop) {
   PageObjectFactory pof = new PageObjectFactory(Driver.getDriver(browserConf), prop);
   Integer articlesCount = pof.libraryPage().load().isLoaded().getSize(0);
   pof.libraryPage().loadZimFile(0);
   sassert.assertEquals(
       pof.contentPage().getTocCount(),
       articlesCount,
       "Verify meta deta info on Home page for size and toc count on Content Page");
   sassert.assertAll();
 }