Open topic with navigation

com.hp.lft.sdk.sap.ui5

## Interface Table

- All Superinterfaces:
    Clickable, LocationInfoProvider, SupportDragAndDrop, SupportsNativeObject, TableBase<TableRow>, TestObject, TestObjectDescriber, VisibleProvider, WaitUntilVisibleProvider, WebElement, WebTestObject, WebTestObjectDescriber

      public interface Table
      extends WebElement, TableBase<TableRow>

  An SAPUI5 table object.
  Note: Row-related methods always refer only to visible rows.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `deleteRow(int... rowIndices)` Deletes the specified rows in the table (by index).
    `void` | `deleteRow(TableRow... rows)` Deletes the specified rows in the table.
    `void` | `deselectAllRows()` Deselects all rows in the table.
    `void` | `deselectRow(int... rowIndices)` Deselects the specified rows in the table (by index).
    `void` | `deselectRow(TableRow... rows)` Deselects the specified rows in the table.
    `ControlType` | `getControlType()` Returns the `ControlType` of the test object.
    `DesktopTableBehavior` | `getDesktop()` Returns the functionality provided by `DesktopTableBehavior`.
    `MobileTableBehavior` | `getMobile()` Returns the functionality provided by `MobileTableBehavior`.
    `TableRow` | `getRow(int rowIndex)` Returns the index of the specified `TableRow` row.
    `java.util.List<TableRow>` | `getSelectedRows()` Returns a list of all selected `TableRow` rows in the table.
    `java.util.List<TableRow>` | `getVisibleRows()` Returns a list of the visible `TableRow` rows in the current page.
    `void` | `more()` Clicks the More button in the expandable table.
    `void` | `selectAllRows()` Selects all rows in the table.
    `void` | `selectCell(int row, int column)` Selects the specified cell in the table (by row and column).
    `void` | `selectCell(int row, java.lang.String colName)` Selects the specified cell in the table (by row and column name). Note: Supported from LeanFT 14.51.
    `void` | `selectRow(int... rowIndices)` Selects the specified rows in the table (by index).
    `void` | `selectRow(TableRow... rows)` Selects the specified rows in the table.

    - ### Methods inherited from interface com.hp.lft.sdk.web.WebElement

      `doubleClick, doubleClick, fireEvent, getAccessibilityName, getCSSSelector, getRole, getXPath, hoverTap, hoverTap, longPress, longPress, pan, pan, pinch, pinch, swipe, swipe`

    - ### 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.Clickable

      `click, click, click`

    - ### Methods inherited from interface com.hp.lft.sdk.web.WebTestObject

      `getAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisible`

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

      `getAbsoluteLocation, getLocation, getSize`

    - ### Methods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriber

      `describe, describe`

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

      `describe`

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

      `getNativeObject`

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

      `dragAndDropOn, dragAndDropOn`

    - ### Methods inherited from interface com.hp.lft.sdk.web.TableBase

      `findRowWithCellText, findRowWithCellText, findRowWithCellTextInColumn, findRowWithCellTextInColumn, getBorder, getColumnHeaders, getRows`

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

      `waitUntilVisible, waitUntilVisible`

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

      `isVisible`

- - ### Method Detail

    - #### getControlType

          ControlType getControlType()
                      throws GeneralLeanFtException

      Returns the `ControlType` of the test object.
      Returns:
        The control type of the test object, or `Unknown` if indeterminate.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getDesktop

          DesktopTableBehavior getDesktop()
                      throws GeneralLeanFtException

      Returns the functionality provided by `DesktopTableBehavior`.
      Returns:
        The functionality provided by `DesktopTableBehavior`.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getMobile

           MobileTableBehavior getMobile()
                      throws GeneralLeanFtException

      Returns the functionality provided by `MobileTableBehavior`.
      Returns:
        The functionality provided by `MobileTableBehavior`.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getVisibleRows

          java.util.List<TableRow> getVisibleRows()
                     throws GeneralLeanFtException

      Returns a list of the visible `TableRow` rows in the current page.
      Returns:
        the visible `TableRow` rows in the current page.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSelectedRows

          java.util.List<TableRow> getSelectedRows()
                                            throws GeneralLeanFtException

      Returns a list of all selected `TableRow` rows in the table.
      Returns:
        A list of all selected `TableRow` rows in the table.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### selectCell

          void selectCell(int row,
                          int column)
                   throws GeneralLeanFtException

      Selects the specified cell in the table (by row and column).
      Parameters:
        `row` - the row number of the cell to select (1-based).
        `col` - the column number of the cell to select (1-based).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### selectCell

          void selectCell(int row,
          		 java.lang.String colName)
          	throws GeneralLeanFtException

      Selects the specified cell in the table (by row and column name).
      Note: Supported from LeanFT 14.51
      Parameters:
        `row` - the row number of the cell to select (1-based).
        `colName` - the column name of the cell to select.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### selectRow

          void selectRow(int... rowIndices)
                  throws GeneralLeanFtException

      Selects the specified rows in the table (by index).
      Parameters:
        `rowIndices` - the indices of the rows to select (1-based).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### selectRow

          void selectRow(TableRow... rows)
                  throws GeneralLeanFtException

      Selects the specified rows in the table.
      Parameters:
        `rows` - the `TableRow` rows to select.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### selectAllRows

          void selectAllRows()
                      throws GeneralLeanFtException

      Selects all rows in the table.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### deselectRow

          void deselectRow(int... rowIndices)
                    throws GeneralLeanFtException

      Deselects the specified rows in the table (by index).
      Parameters:
        `rowIndices` - indices of the rows to deselect (1-based).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### deselectRow

          void deselectRow(TableRow... rows)
                    throws GeneralLeanFtException

      Deselects the specified rows in the table.
      Parameters:
        `rows` - the `TableRow` rows to deselect.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### deselectAllRows

          void deselectAllRows()
                        throws GeneralLeanFtException

      Deselects all rows in the table.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### deleteRow

          void deleteRow(int... rowIndices)
                  throws GeneralLeanFtException

      Deletes the specified rows in the table (by index).
      Parameters:
        `rowIndices` - indices of the rows to delete (1-based).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### deleteRow

          void deleteRow(TableRow... rows)
                  throws GeneralLeanFtException

      Deletes the specified rows in the table.
      Parameters:
        `rows` - the `TableRow` rows to delete.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### more

          void more()
             throws GeneralLeanFtException

      Clicks the More button in the expandable table.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getRow

          TableRow getRow(int rowIndex)
                   throws GeneralLeanFtException

      Returns the index of the specified `TableRow` row.
      Parameters:
        `rowIndex` - the index of the row to return (1-based).
      Returns:
        the index of the specified row.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.