org.xwiki.test.ui.po
Class LiveTableElement

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.LiveTableElement

public class LiveTableElement
extends BaseElement

Represents the actions possible on a livetable.

Since:
3.2M3
Version:
$Id: 07d46e3b6ae6ae8bdfccef758003545128b70c87 $

Constructor Summary
LiveTableElement(String livetableId)
           
 
Method Summary
 void filterColumn(String inputId, String filterValue)
           
 int getColumnIndex(String columnTitle)
           
 String getFilterValue(String inputId)
           
 int getRowCount()
           
 boolean hasColumn(String columnTitle)
           
 boolean hasRow(String columnTitle, String columnValue)
          Checks if there is a row that has the given value for the specified column.
 boolean isReady()
           
 void waitUntilReady()
          Wait till the livetable has finished displaying all its rows (so that we can then assert the livetable content without running the risk that the rows have not been updated yet).
 void waitUntilRowCountGreaterThan(int minimalExpectedRowCount)
           
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiveTableElement

public LiveTableElement(String livetableId)
Method Detail

isReady

public boolean isReady()
Returns:
if the livetable has finished displaying and is ready for service

waitUntilReady

public void waitUntilReady()
Wait till the livetable has finished displaying all its rows (so that we can then assert the livetable content without running the risk that the rows have not been updated yet).


hasColumn

public boolean hasColumn(String columnTitle)

filterColumn

public void filterColumn(String inputId,
                         String filterValue)

getFilterValue

public String getFilterValue(String inputId)
Parameters:
inputId - the filter input identifier
Returns:
the value of the filter input for the specified column
See Also:
filterColumn(String, String)

getColumnIndex

public int getColumnIndex(String columnTitle)
Parameters:
columnTitle - the title of live table column
Returns:
the 0-based index of the specified column

hasRow

public boolean hasRow(String columnTitle,
                      String columnValue)
Checks if there is a row that has the given value for the specified column.

Parameters:
columnTitle - the title of live table column
columnValue - the value to match rows against
Returns:
true if there is a row that matches the given value for the specified column, false otherwise

getRowCount

public int getRowCount()
Returns:
the number of rows in the live table

waitUntilRowCountGreaterThan

public void waitUntilRowCountGreaterThan(int minimalExpectedRowCount)
Since:
3.2M3


Copyright © 2004-2013 XWiki. All Rights Reserved.