br.com.caelum.seleniumdsl.table.layout
Interface TableLayout

All Known Implementing Classes:
FullTableLayout, PlainPlusThTableLayout, PlainTableLayout

public interface TableLayout


Method Summary
 boolean contains(Table table, String col, String content)
           
 int getColCount()
           
 int getContentCount()
           
 int getRowCount()
           
 String headerLinkValue(int col)
          Used when the header's text is a link.
 String headerValue(int col)
           
 String value(int row, int col)
           
 

Method Detail

headerValue

String headerValue(int col)
Parameters:
col - the column index
Returns:
the text of the column

headerLinkValue

String headerLinkValue(int col)
Used when the header's text is a link. Common when doing pagination

Parameters:
col - the column index
Returns:
the '<a href' tag's text

getContentCount

int getContentCount()
Returns:
The tbody rows. Some layouts will remove the first row and return all the others, ignoring if the last row is a footer or no.

value

String value(int row,
             int col)
Parameters:
row - the row index
col - the col index
Returns:
the text of the cell or null if the cell is not found

getColCount

int getColCount()
Returns:
The number of columns on the header.

getRowCount

int getRowCount()
Returns:
The full row count, including possible header and footer.

contains

boolean contains(Table table,
                 String col,
                 String content)
Parameters:
col - the header text of the column
content - the content to search
Returns:
true if the content exists


Copyright © 2008. All Rights Reserved.