com.hp.lft.sdk.uiapro

Interface GridPattern

Supported in UFT Developer version 24.2 and later

UIA Pro is supported as a technical preview.



  • public interface GridPattern
    The methods and properties used to interact with a grid control; a container control that can be traversed by row and column.
    • Method Detail

      • activateCell

        void activateCell(int row,
                          int column)
                   throws GeneralLeanFtException
        Activates (double-clicks) the specified cell in the grid.
        Parameters:
        row - The cell row index
        column - The cell column index
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • addCellToSelection

        void addCellToSelection(int row,
                                int column)
                         throws GeneralLeanFtException
        Selects a cell in addition to previously selected cells.
        Parameters:
        row - The cell row index
        column - The cell column index
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • addRowToSelection

        void addRowToSelection(int row)
                        throws GeneralLeanFtException
        Selects a row in addition to previously selected rows.
        Parameters:
        row - The row to select.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • clickCell

        void clickCell(int row,
                       int column)
                throws GeneralLeanFtException
        Clicks the specified cell in the grid.
        Parameters:
        row - The cell row index
        column - The cell column index
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • clickCell

        void clickCell(int row,
                       int column,
                       MouseButton button)
                throws GeneralLeanFtException
        Clicks the specified cell in the grid.
        Parameters:
        row - The cell row index
        column - The cell column index
        button - The mouse button used to perform the cell click.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • getCell

        Object getCell(int row,
                       int column)
                throws GeneralLeanFtException
        Parameters:
        row - The cell row index
        column - The cell column index
        Returns:
        Retrieves a UIAPro object representing an item in the grid.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • getCellName

        String getCellName(int row,
                           int column)
                    throws GeneralLeanFtException
        Parameters:
        row - The cell row index
        column - The cell column index
        Returns:
        the value of the name property for the specified cell.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • getCellText

        String getCellText(int row,
                           int column)
                    throws GeneralLeanFtException
        Parameters:
        row - The cell row index
        column - The cell column index
        Returns:
        the text provided by the cell's ITextPattern pattern.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • getCellValue

        String getCellValue(int row,
                            int column)
                     throws GeneralLeanFtException
        Parameters:
        row - The cell row index
        column - The cell column index
        Returns:
        the value provided by the cell IValuePattern pattern.
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • setCellValue

        void setCellValue(int row,
                          int column,
                          String cellValue)
                   throws GeneralLeanFtException
        Sets the specified cell's value using the IValuePattern pattern.
        Parameters:
        row - The cell row index
        column - The cell column index
        cellValue - The cell value to set
        Throws:
        GeneralLeanFtException - if error occurs during execution.
      • selectCell

        void selectCell(int row,
                        int column)
                 throws GeneralLeanFtException
        Selects a cell in the grid.
        Parameters:
        row - The cell row index
        column - The cell column index
        Throws:
        GeneralLeanFtException - if error occurs during execution.