Open topic with navigation

com.hp.lft.sdk.web

## Interface WebTestObjectDescriber

- All Superinterfaces:
    TestObjectDescriber
  All Known Subinterfaces:
    Accordion, Area, AudioControl, Browser, Button, Button, Calendar, Carousel, CheckBox, CheckBox, DatePicker, DateTimeInput, Dialog, EditField, EditField, FacetFilter, FileField, Frame, Header, Image, Label, Link, ListBox, ListBox, Menu, Menu, Menubar, NavigationBar, NotificationBar, NumericField, Page, Paginator, Password, RadioButton, RadioGroup, RadioGroup, RatingIndicator, RoadMap, RowRepeater, Slider, Table, Table, TabStrip, TabStrip, Tile, ToggleButton, ToolBar, TreeView, TreeView, VideoControl, WebElement, WebTestObject

      public interface WebTestObjectDescriber
      extends TestObjectDescriber

  Indicates that the test object supports describing its child test object with advanced web filters.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `<TChild extends WebElement> TChild` | `describe(java.lang.Class<TChild> type, CSSDescription css)` Describes a child test object using the provided CSS selector.
    `<TChild extends WebElement> TChild` | `describe(java.lang.Class<TChild> type, XPathDescription xpath)` Describes a child test object using the provided XPath.

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

      `describe`

- - ### Method Detail

    - #### describe

          <TChild extends WebElement> TChild describe(java.lang.Class<TChild> type,
                                                      XPathDescription xpath)
                                               throws GeneralLeanFtException

      Describes a child test object using the provided XPath.
      The current instance test object is the parent of the returned test object.
      LeanFT searches for this test object only when an operation on this test object is invoked. This means that if the test object is not found in the application, this command will still succeed. In this case, an exception is thrown only when an operation is invoked.
      Type Parameters:
        `TChild` - the generic type of the child test object.
      Parameters:
        `type` - the child test object type.
        `xpath` - the XPath used to find the child test object.
      Returns:
        the requested child test object with its description.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### describe

          <TChild extends WebElement> TChild describe(java.lang.Class<TChild> type,
                                                      CSSDescription css)
                                               throws GeneralLeanFtException

      Describes a child test object using the provided CSS selector.
      The current instance test object is the parent of the returned test object.
      LeanFT searches for this test object only when an operation on this test object is invoked. This means that if the test object is not found in the application, this command will still succeed. In this case, an exception is thrown only when an operation is invoked.
      Type Parameters:
        `TChild` - the generic type of the child test object.
      Parameters:
        `type` - the child test object type.
        `css` - the CSS selector query used to find the child test object.
      Returns:
        the requested child test object with its description.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.