org.alfresco.webdrone.share
Class Pagination

java.lang.Object
  extended by org.alfresco.webdrone.share.Pagination

public class Pagination
extends Object

Pagination object, holds common methods applied to pagination in Alfresco share.

Author:
Michael Suzuki

Constructor Summary
Pagination()
           
 
Method Summary
static boolean hasPaginationButton(WebDrone drone, String css)
          Checks for next or previous pagination button.
static HtmlPage selectPagiantionButton(WebDrone drone, String css)
          Selects the next or previous button on the pagination bar based on the action required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pagination

public Pagination()
Method Detail

hasPaginationButton

public static boolean hasPaginationButton(WebDrone drone,
                                          String css)
Checks for next or previous pagination button. and verify is are clickable.

Parameters:
drone - WebDrone
css - the css to find the button
Returns:
true if clickable.

selectPagiantionButton

public static HtmlPage selectPagiantionButton(WebDrone drone,
                                              String css)
Selects the next or previous button on the pagination bar based on the action required.

Parameters:
drone - WebDrone
css - that identifies which button to select
Returns:
Search result page


Copyright © 2013. All Rights Reserved.