Share this page

com.hp.lft.sdk.web

## Interface TableCell

- All Known Subinterfaces:
    TableCell

      public interface TableCell

  A single cell in the Web Table test object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `WebElement` | `asWebElement()` 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(java.lang.Class<TChild> type)` Returns a specified child according to its type.
    `<TChild extends TestObject> TChild` | `findChildren(java.lang.Class<TChild> type, int index)` Returns a child test object from this cell according to its type and index.
    `int` | `getColumnIndex()` Returns the cell's 0-based column index.
    `<TChild extends TestObject> int` | `getNumberOfChildrenWithType(java.lang.Class<TChild> type)` Returns the number of child test objects that have the specified type.
    `int` | `getRowIndex()` Returns the cell's 0-based row index.
    `java.lang.String` | `getText()` Returns the current text in the cell.

- - ### Method Detail

    - #### getText

          java.lang.String getText()
                            throws GeneralLeanFtException

      Returns the current text in the cell.
      Returns:
        the current text in the cell.
      Throws:
        `GeneralLeanFtException` - if an 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.

    - #### findChildren

          <TChild extends TestObject> TChild findChildren(java.lang.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 an error occurs during execution.

    - #### findChildren

          <TChild extends TestObject> TChild findChildren(java.lang.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 an error occurs during execution.

    - #### getNumberOfChildrenWithType

          <TChild extends TestObject> int getNumberOfChildrenWithType(java.lang.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 an 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 an error occurs during execution.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: