Ejemplo n.º 1
0
  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];
  }
Ejemplo n.º 2
0
 /** 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();
 }
Ejemplo n.º 3
0
 public GridSorterPage(GridResultPage gridPage) {
   this.gridPage = gridPage;
   sortingDiv = gridPage.getGridContainer().findElement(By.xpath(sortingXPath));
   sortAnchor = sortingDiv.findElement(By.xpath(sortAnchorXPath));
 }