br.com.caelum.seleniumdsl.table
Class DefaultTable
java.lang.Object
br.com.caelum.seleniumdsl.table.DefaultTable
- All Implemented Interfaces:
- Table
public class DefaultTable
- extends java.lang.Object
- implements Table
|
Constructor Summary |
DefaultTable(com.thoughtworks.selenium.Selenium selenium,
java.lang.String id)
|
DefaultTable(com.thoughtworks.selenium.Selenium selenium,
java.lang.String value,
java.lang.String type)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTable
public DefaultTable(com.thoughtworks.selenium.Selenium selenium,
java.lang.String id)
DefaultTable
public DefaultTable(com.thoughtworks.selenium.Selenium selenium,
java.lang.String value,
java.lang.String type)
getType
public java.lang.String getType()
- Specified by:
getType in interface Table
column
public Column column(int columnIndex)
- Specified by:
column in interface Table
- Parameters:
columnIndex - the index of the column.
- Returns:
- the br.com.caelum.seleniumdsl.table.Column object
column
public Column column(java.lang.String columnName)
- Specified by:
column in interface Table
- Parameters:
columnName - the label of the column.
- Returns:
- the br.com.caelum.seleniumdsl.Column object
getColCount
public int getColCount()
- Specified by:
getColCount in interface Table
getRowCount
public int getRowCount()
- Specified by:
getRowCount in interface Table
getContentCount
public int getContentCount()
- Specified by:
getContentCount in interface Table
- Returns:
- the number of rows of the contents, ignoring header and footer (if one is found)
cell
public Cell cell(int row,
int col)
- Specified by:
cell in interface Table
- Parameters:
row - Only counts the CONTENTS of the table. So index 1 is the first data row of the table, ignoring the header.
- Returns:
- the Cell object
cell
public Cell cell(int row,
java.lang.String col)
- Specified by:
cell in interface Table
- Parameters:
row - Only counts the CONTENTS of the table. So index 1 is the first data row of the table, ignoring the header.
- Returns:
- the Cell object
getId
public java.lang.String getId()
- Specified by:
getId in interface Table
exists
public boolean exists()
- Specified by:
exists in interface Table
iterate
public void iterate(RowVisitor visitor)
- Specified by:
iterate in interface Table
header
public Row header()
- Specified by:
header in interface Table
- Returns:
- the header br.com.caelum.seleniumdsl.table.Row object
row
public Row row(java.lang.Integer row)
- Specified by:
row in interface Table
- Parameters:
row - Only counts the CONTENTS of the table. So index 1 is the first data row of the table, ignoring the header.
- Returns:
- the br.com.caelum.seleniumdsl.table.Row object
findColumn
public java.lang.Integer findColumn(java.lang.String columnName)
- Specified by:
findColumn in interface Table
- Parameters:
columnName - the header label of the column
- Returns:
- the column index
select
public RowMatcher select(RowMatcher matcher)
- Specified by:
select in interface Table
createCriteria
public TableCriteria createCriteria()
- Specified by:
createCriteria in interface Table
getLayout
public TableLayout getLayout()
- Specified by:
getLayout in interface Table
contains
public boolean contains(java.lang.String col,
java.lang.String content)
- Specified by:
contains in interface Table
- Parameters:
col - the header text of the columncontent - the content to search
- Returns:
- true if the content exists
Copyright © 2008. All Rights Reserved.