protected boolean checkPager(GridResultPage gridPage,String[] rows) {
GridPagerPage gridPager = gridPage.getGridPager();
//If paging is available
if (gridPager.canPageNext()){
gridPager.nextPage();
//wait for the page number to change
waitForText("/html/body/div[3]/div/div/div[2]", 5, "5 - 10");
// wait for the rows of the grid to load after changing page
waitForChildren("table", "tbody/tr[5]", 10);
} else {