Package com.hp.lft.sdk.web
Interface TableCell
- All Known Subinterfaces:
- TableCell
public interface TableCell
A single cell in the Web Table test object.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a web element that corresponds to the current table cell, so that it can be used like any other web element.<TChild extends TestObject>
 TChildfindChildren(Class<TChild> type) Returns a specified child according to its type.<TChild extends TestObject>
 TChildfindChildren(Class<TChild> type, int index) Returns a child test object from this cell according to its type and index.intReturns the cell's 0-based column index.Returns the name of the column.<TChild extends TestObject>
 intgetNumberOfChildrenWithType(Class<TChild> type) Returns the number of child test objects that have the specified type.intReturns the cell's 0-based row index.getText()Returns the current text in the cell.
- 
Method Details- 
getTextReturns the current text in the cell.- Returns:
- the current text in the cell.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getColumnIndexint getColumnIndex()Returns the cell's 0-based column index.- Returns:
- the cell's 0-based column index.
 
- 
getRowIndexint getRowIndex()Returns the cell's 0-based row index.- Returns:
- the cell's 0-based row index.
 
- 
getColumnNameString getColumnName()Returns the name of the column.- Returns:
- the name of the column.
 
- 
findChildrenReturns a specified child according to its type.- Type Parameters:
- TChild- the generic type of the child.
- Parameters:
- type- the test object type that is requested.
- Returns:
- a specified child according to its type, or null if it is not found.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
findChildren<TChild extends TestObject> TChild findChildren(Class<TChild> type, int index) throws GeneralLeanFtException Returns a child test object from this cell according to its type and index.- Type Parameters:
- TChild- the generic type of the child.
- Parameters:
- type- the requested test object type.
- index- the index of the requested child with the specified type.
- Returns:
- a child test object from this cell according to its type and index.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getNumberOfChildrenWithType<TChild extends TestObject> int getNumberOfChildrenWithType(Class<TChild> type) throws GeneralLeanFtException Returns the number of child test objects that have the specified type.- Type Parameters:
- TChild- the generic type of the child.
- Parameters:
- type- the requested test object type.
- Returns:
- the number of child test objects that have the specified type.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
asWebElementReturns a web element that corresponds to the current table cell, so that it can be used like any other web element.
 For example, you can then apply Describe() to it, just as you would for any web element.- Returns:
- a WebElement that corresponds to the current table cell.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-