br.com.caelum.seleniumdsl.table
Class DefaultTable
java.lang.Object
br.com.caelum.seleniumdsl.table.DefaultTable
- All Implemented Interfaces:
- Table
public class DefaultTable
- extends Object
- implements Table
| 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,
String id)
DefaultTable
public DefaultTable(com.thoughtworks.selenium.Selenium selenium,
String value,
String type)
getType
public 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(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,
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 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(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 Integer findColumn(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(String col,
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.