Open topic with navigation

com.hp.lft.sdk.oracle

# Interface Table

Note: Supported in LeanFT versions 14.52 and later.

- All Superinterfaces:
    Clickable, EnabledProvider, LocationInfoProvider, TestObject, TestObjectDescriber, UiObjectBase, WaitUntilEnabledProvider

      public interface Table
      extends UiObjectBase, WaitUntilEnabledProvider, TestObject

  An Oracle Table test object

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `activateRow(int row)` Activates a specified record.
    `TableCell` | `getCell(int row, String columnHeader)` Returns a cell specified by row index and column header.
    `List<String>` | `getColumnHeaders()` Returns the column headers.
    `String` | `getObjectName()` Returns the name of the object supplied by the server.
    `List<TableRow>` | `getRows()` Returns the `TableRow` objects in the table.

    - ### Methods inherited from interface com.hp.lft.sdk.oracle.UiObjectBase

      `getObjectType, sendKey`

    - ### Methods inherited from interface com.hp.lft.sdk.Clickable

      `click, click, click`

    - ### Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider

      `getAbsoluteLocation, getLocation, getSize`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider

      `waitUntilEnabled, waitUntilEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.EnabledProvider

      `isEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObject

      `exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber

      `describe`

- - ### Method Detail

    - #### getRows

          List<TableRow> getRows()
                          throws GeneralLeanFtException

      Returns the `TableRow` objects in the table.
      Returns:
        the `TableRow` objects in the table.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getColumnHeaders

          List<String> getColumnHeaders()
                                 throws GeneralLeanFtException

      Returns the column headers.
      Returns:
        the column headers.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getObjectName

          String getObjectName()
                        throws GeneralLeanFtException

      Returns the name of the object supplied by the server.
      Returns:
        the name of the object supplied by the server.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activateRow

          void activateRow(int row)
                    throws GeneralLeanFtException

      Activates a specified record.
      Parameters:
        `row` - 0-based row index.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getCell

          TableCell getCell(int row,
                            String columnHeader)
                     throws GeneralLeanFtException

      Returns a cell specified by row index and column header.
      Parameters:
        `row` - 0-based row index.
        `columnHeader` - the column header.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution