Share this page

com.hp.lft.sdk.web

## Interface TableBase<T extends TableRowBase>

- Type Parameters:
    `T` - the specified table row.
  All Known Subinterfaces:
    Table, Table

      public interface TableBase<T extends TableRowBase>

  Base interface for Web and SAP UI5 table test objects.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `T` | `findRowWithCellText(java.lang.String text)` Finds the first row with this text.
    `T` | `findRowWithCellText(java.lang.String text, int startFromRow)` Finds the first row with the specified text.
    `T` | `findRowWithCellTextInColumn(java.lang.String text, int columnNumber)` Finds the first row with the specified text in the specified column.
    `T` | `findRowWithCellTextInColumn(java.lang.String text, int columnNumber, int startFromRow)` Finds the first row with the specified text in the specified column, starting from the specified row.
    `int` | `getBorder()` Returns the number of pixels that are used as border on the table.
    `java.util.List<java.lang.String>` | `getColumnHeaders()` Returns the headers of the columns, usually this is the text of the first row.
    `java.util.List<T>` | `getRows()` Returns a collection of rows.

- - ### Method Detail

    - #### getBorder

          int getBorder()
                 throws GeneralLeanFtException

      Returns the number of pixels that are used as border on the table.
      Returns:
        the number of pixels that are used as border on the table.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getColumnHeaders

          java.util.List<java.lang.String> getColumnHeaders()
                                                     throws GeneralLeanFtException

      Returns the headers of the columns, usually this is the text of the first row.
      Returns:
        the headers of the columns, usually this is the text of the first row.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getRows

          java.util.List<T> getRows()
                             throws GeneralLeanFtException

      Returns a collection of rows.
      Returns:
        a collection of rows.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### findRowWithCellText

                                                      T findRowWithCellText(java.lang.String text)
                         throws GeneralLeanFtException

      Finds the first row with this text.
      Parameters:
        `text` - the text to find.
      Returns:
        the first row with this text.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### findRowWithCellText

                                                      T findRowWithCellText(java.lang.String text,
                                int startFromRow)
                         throws GeneralLeanFtException

      Finds the first row with the specified text.
      Parameters:
        `text` - the text to find.
        `startFromRow` - index from which to start the search.
      Returns:
        the requested row, or null if none exists.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### findRowWithCellTextInColumn

                                                      T findRowWithCellTextInColumn(java.lang.String text,
                                        int columnNumber)
                                 throws GeneralLeanFtException

      Finds the first row with the specified text in the specified column.
      Parameters:
        `text` - the text to find.
        `columnNumber` - the column number to search.
      Returns:
        the requested row or null if non exists.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### findRowWithCellTextInColumn

                                                      T findRowWithCellTextInColumn(java.lang.String text,
                                        int columnNumber,
                                        int startFromRow)
                                 throws GeneralLeanFtException

      Finds the first row with the specified text in the specified column, starting from the specified row.
      Parameters:
        `text` - text to find.
        `columnNumber` - the column number to search.
        `startFromRow` - index from which to start the search.
      Returns:
        the requested row, or null if none exists.
      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: