Interface TableCell

All Known Subinterfaces:
TableCell

public interface TableCell
A single cell in the Web Table test object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a web element that corresponds to the current table cell, so that it can be used like any other web element.
    <TChild extends TestObject>
    TChild
    findChildren(Class<TChild> type)
    Returns a specified child according to its type.
    <TChild extends TestObject>
    TChild
    findChildren(Class<TChild> type, int index)
    Returns a child test object from this cell according to its type and index.
    int
    Returns the cell's 0-based column index.
    Returns the name of the column.
    <TChild extends TestObject>
    int
    Returns the number of child test objects that have the specified type.
    int
    Returns the cell's 0-based row index.
    Returns the current text in the cell.
  • Method Details

    • getText

      String getText() throws GeneralLeanFtException
      Returns the current text in the cell.
      Returns:
      the current text in the cell.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getColumnIndex

      int getColumnIndex()
      Returns the cell's 0-based column index.
      Returns:
      the cell's 0-based column index.
    • getRowIndex

      int getRowIndex()
      Returns the cell's 0-based row index.
      Returns:
      the cell's 0-based row index.
    • getColumnName

      String getColumnName()
      Returns the name of the column.
      Returns:
      the name of the column.
    • findChildren

      <TChild extends TestObject> TChild findChildren(Class<TChild> type) throws GeneralLeanFtException
      Returns 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
    • asWebElement

      WebElement asWebElement() throws GeneralLeanFtException
      Returns 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