com.hp.lft.sdk.web

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

    • Constructor Detail

      • Init

        protected Init()
    • Method Detail

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