Open topic with navigation

com.hp.lft.sdk.web

## Interface UiGrid

Note: Supported in LeanFT versions 14.51 and later.

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

      public interface UiGrid
      extends WebElement, GridBase<TableRow>

  A UiGrid table.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `TableRow` | `findRowWithCellText(String text)` Finds the first row with this text.
    `TableRow` | `findRowWithCellText(String text, int startFromRow)` Finds the first row with the specified text.
    `void` | `scrollToRow(int row)` Scrolls to a specified row, as defined by the rowג€™s number.
    `void` | `scrollToRow(TableRow row)` Scrolls to a specified row, as defined by the row `TableRow`.

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

      `findRowWithCellTextInColumn, findRowWithCellTextInColumn, findRowWithCellTextInColumn, findRowWithCellTextInColumn, findRowWithCellTextInColumn, getColumnHeaders, getRows, selectCell, selectCell`

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

      `waitUntilVisible, waitUntilVisible`

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

      `dragAndDropOn, dragAndDropOn`

- - ### Method Detail

    - #### findRowWithCellText

                                                      TableRow findRowWithCellText(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 error occurs during execution

    - #### findRowWithCellText

                                                      TableRow findRowWithCellText(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 error occurs during execution

    - #### scrollToRow

          void scrollToRow(int row)
                           throws GeneralLeanFtException

      Scrolls to a specified row, as defined by the rowג€™s number.
      Parameters:
        `row` - 0-based row number
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### scrollToRow

          void scrollToRow(TableRow row)
                           throws GeneralLeanFtException

      Scrolls to a specified row, as defined by the row `TableRow`.
      Parameters:
        `row` - the `TableRow` object to scroll to.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution