Class WebElementDescription.Init<T extends 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, GridBaseDescription.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 Details

    • Init

      protected Init()
  • Method Details

    • 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(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(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(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(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).