com.hp.lft.sdk.web

Interface TableCell

  • All Known Subinterfaces:
    TableCell


    public interface TableCell
    A single cell in the Web Table test object.
    • Method Summary

      Modifier and TypeMethod and Description
      WebElementasWebElement()
      Returns a web element that corresponds to the current table cell, so that it can be used like any other web element.
      <TChild extends TestObject>
      TChild
      findChildren(java.lang.Class<TChild> type)
      Returns a specified child according to its type.
      <TChild extends TestObject>
      TChild
      findChildren(java.lang.Class<TChild> type, int index)
      Returns a child test object from this cell according to its type and index.
      intgetColumnIndex()
      Returns the cell's 0-based column index.
      <TChild extends TestObject>
      int
      getNumberOfChildrenWithType(java.lang.Class<TChild> type)
      Returns the number of child test objects that have the specified type.
      intgetRowIndex()
      Returns the cell's 0-based row index.
      java.lang.StringgetText()
      Returns the current text in the cell.
    • Method Detail

      • getColumnIndex

        int getColumnIndex()
        Returns the cell's 0-based column index.
        Returns:
        the cell's 0-based column index.
      • getRowIndex

        int getRowIndex()
        Returns the cell's 0-based row index.
        Returns:
        the cell's 0-based row index.
      • findChildren

        <TChild extends TestObject> TChild findChildren(java.lang.Class<TChild> type)
                                                 throws GeneralLeanFtException
        Returns a specified child according to its type.
        Type Parameters:
        TChild - the generic type of the child.
        Parameters:
        type - the test object type that is requested.
        Returns:
        a specified child according to its type, or null if it is not found.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • findChildren

        <TChild extends TestObject> TChild findChildren(java.lang.Class<TChild> type,
                                                        int index)
                                                 throws GeneralLeanFtException
        Returns a child test object from this cell according to its type and index.
        Type Parameters:
        TChild - the generic type of the child.
        Parameters:
        type - the requested test object type.
        index - the index of the requested child with the specified type.
        Returns:
        a child test object from this cell according to its type and index.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getNumberOfChildrenWithType

        <TChild extends TestObject> int getNumberOfChildrenWithType(java.lang.Class<TChild> type)
                                                             throws GeneralLeanFtException
        Returns the number of child test objects that have the specified type.
        Type Parameters:
        TChild - the generic type of the child.
        Parameters:
        type - the requested test object type.
        Returns:
        the number of child test objects that have the specified type.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • asWebElement

                                                    WebElement asWebElement()
                         throws GeneralLeanFtException
        Returns a web element that corresponds to the current table cell, so that it can be used like any other web element.
        For example, you can then apply Describe() to it, just as you would for any web element.
        Returns:
        a WebElement that corresponds to the current table cell.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.