public GridPagerPage(GridResultPage gridPage) { this.gridPage = gridPage; pagerDiv = gridPage.getGridContainer().findElement(By.xpath(PagerXPath)); pagerResultDiv = pagerDiv.findElement(By.xpath(PagerResultXPath)); int[] results = parsePagerResult(); start = results[0]; end = results[1]; count = results[2]; }
/** Click the next anchor */ public void previousPage(GridResultPage gridPage) { pagerDiv = gridPage.getGridContainer().findElement(By.xpath(PagerXPath)); WebElement previousAnchor = pagerDiv.findElement(By.xpath(PagerPreviousXPath)); previousAnchor.click(); }
public GridSorterPage(GridResultPage gridPage) { this.gridPage = gridPage; sortingDiv = gridPage.getGridContainer().findElement(By.xpath(sortingXPath)); sortAnchor = sortingDiv.findElement(By.xpath(sortAnchorXPath)); }