Open topic with navigation

com.hp.lft.sdk.web

## Class WebElementDescription.Init<T extends WebElementDescription.Init<T>>

- java.lang.Object
- - com.hp.lft.sdk.DescriptionBase.Init<T>
  - - com.hp.lft.sdk.web.WebBaseDescription.Init<T>
    - - com.hp.lft.sdk.web.WebElementDescription.Init<T>

- Direct Known Subclasses:
    AccordionDescription.Init, AreaDescription.Init, ButtonDescription.Init, CalendarDescription.Init, CarouselDescription.Init, DatePickerDescription.Init, DateTimeInputDescription.Init, DialogDescription.Init, FacetFilterDescription.Init, FormFieldDescription.Init, HeaderDescription.Init, ImageDescription.Init, LabelDescription.Init, LinkDescription.Init, MediaControlDescription.Init, MenubarDescription.Init, MenuDescription.Init, MenuDescription.Init, NavigationBarDescription.Init, NotificationBarDescription.Init, PaginatorDescription.Init, RadioGroupDescription.Init, RatingIndicatorDescription.Init, RoadMapDescription.Init, RowRepeaterDescription.Init, TableDescription.Init, TabStripDescription.Init, TabStripDescription.Init, TileDescription.Init, ToolBarDescription.Init, TreeViewDescription.Init, TreeViewDescription.Init, WebElementDescription.Builder
  Enclosing class:
    WebElementDescription

      protected abstract static class WebElementDescription.Init<T extends WebElementDescription.Init<T>>
      extends WebBaseDescription.Init<T>

- - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `protected` | `Init()`

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `T` | `accessibilityName(java.lang.String accessibilityName)` Initializes the label of the object (where no text label is available).
    `T` | `accessibilityName(StringProperty accessibilityName)` Initializes the label of the object (where no text label is available).
    `WebElementDescription` | `build()` Returns the built description instance (builder pattern).
    `T` | `cssSelector(CSSDescription cssSelector)` Initializes the element's CSS Selector query.
    `T` | `cssSelector(java.lang.String cssSelector)` Initializes the element's CSS Selector query.
    `T` | `role(java.lang.String role)` Initializes the object's role property.
    `T` | `role(StringProperty role)` Initializes the object's role property.
    `T` | `xpath(java.lang.String xpath)` Initializes the element's XPath.
    `T` | `xpath(XPathDescription xpath)` Initializes the element's XPath.

    - ### Methods inherited from class com.hp.lft.sdk.web.WebBaseDescription.Init

      `absoluteLocation, absoluteLocation, absoluteLocation, attribute, attribute, attributes, className, className, id, id, innerHTML, innerHTML, innerText, innerText, location, location, location, name, name, outerHTML, outerHTML, outerText, outerText, size, size, size, style, style, styles, tagName, tagName, title, title, visible`

    - ### Methods inherited from class com.hp.lft.sdk.DescriptionBase.Init

      `index, self, vri, vri`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Init

          protected Init()

  - ### Method Detail

    - #### build

          public WebElementDescription build()

      Description copied from class: `DescriptionBase.Init`
      Returns the built description instance (builder pattern).
      Overrides:
        `build` in class `DescriptionBase.Init<T extends WebElementDescription.Init<T>>`
      Returns:
        The built description instance (builder pattern).

    - #### cssSelector

          public T cssSelector(CSSDescription cssSelector)

      Initializes the element's CSS Selector query.
      Parameters:
        `cssSelector` - the CSS Selector query to be used to describe the test object.
      Returns:
        the description instance with the update state (builder pattern).

    - #### cssSelector

          public T cssSelector(java.lang.String cssSelector)

      Initializes the element's CSS Selector query.
      Parameters:
        `cssSelector` - the CSS Selector query to be used to describe the test object.
      Returns:
        the description instance with the update state (builder pattern).

    - #### role

          public T role(java.lang.String role)

      Initializes the object's role property.
      Parameters:
        `role` - the function of the specified object.
      Returns:
        the description instance with the update state (builder pattern).

    - #### role

          public T role(StringProperty role)

      Initializes the object's role property.
      Parameters:
        `role` - a StringProperty (or RegExpProperty) representing the function of the specified object.
      Returns:
        the description instance with the update state (builder pattern).

    - #### xpath

          public T xpath(XPathDescription xpath)

      Initializes the element's XPath.
      Parameters:
        `xpath` - the XPathDescription to be used to describe the test object.
      Returns:
        the description instance with the update state (builder pattern).

    - #### xpath

          public T xpath(java.lang.String xpath)

      Initializes the element's XPath.
      Parameters:
        `xpath` - the XPath to be used to describe the test object.
      Returns:
        the description instance with the update state (builder pattern).

    - #### accessibilityName

          public T accessibilityName(java.lang.String accessibilityName)

      Initializes the label of the object (where no text label is available).
      Parameters:
        `accessibilityName` - the label of the object (where no text label is available).
      Returns:
        the description instance with the update state (builder pattern).

    - #### accessibilityName

          public T accessibilityName(StringProperty accessibilityName)

      Initializes the label of the object (where no text label is available).
      Parameters:
        `accessibilityName` - a StringProperty (or RegExpProperty) representing the label of the object (where no text label is available).
      Returns:
        the description instance with the update state (builder pattern).