Class PageDescription.Init<T extends PageDescription.Init<T>>

java.lang.Object
com.hp.lft.sdk.DescriptionBase.Init<T>
com.hp.lft.sdk.web.PageDescription.Init<T>
Direct Known Subclasses:
PageDescription.Builder
Enclosing class:
PageDescription

protected abstract static class PageDescription.Init<T extends PageDescription.Init<T>> extends DescriptionBase.Init<T>
Helper class for PageDescription.Builder.
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • build

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

      public T url(String url)
      Initializes the URL of the page.
      Parameters:
      url - the URL of the page.
      Returns:
      the description instance with the update state (builder pattern).
    • url

      public T url(StringProperty url)
      Initializes the URL of the page.
      Parameters:
      url - a StringProperty(or RegExpProperty) representing the URL of the page.
      Returns:
      the description instance with the update state (builder pattern).
    • text

      public T text(String text)
      Initializes the inner text of the body element.
      Parameters:
      text - the inner text of the body element.
      Returns:
      the description instance with the update state (builder pattern).
    • text

      public T text(StringProperty text)
      Initializes the inner text of the body element.
      Parameters:
      text - a StringProperty(or RegExpProperty) representing the inner text of the body element.
      Returns:
      the description instance with the update state (builder pattern).
    • title

      public T title(String title)
      Initializes the page's title attribute.
      Parameters:
      title - the page's title attribute.
      Returns:
      the description instance with the update state (builder pattern).
    • title

      public T title(StringProperty title)
      Initializes the page's title attribute.
      Parameters:
      title - a StringProperty(or RegExpProperty) representing the page's title attribute.
      Returns:
      the description instance with the update state (builder pattern).
    • absoluteLocation

      public T absoluteLocation(Integer absX, Integer absY)
      Initializes the page's absolute coordinates relative to the screen (in pixels).
      0,0 is always the top-left corner of the (primary) monitor.
      Parameters:
      absX - the absolute X coordinate of the test object location.
      absY - the absolute Y coordinate of the test object location.
      Returns:
      the description instance with the update state (builder pattern).
    • absoluteLocation

      public T absoluteLocation(LocationProperty absLocation)
      Initializes the page's absolute coordinates relative to the screen (in pixels).
      0,0 is always the top-left corner of the (primary) monitor.
      Parameters:
      absLocation - a LocationProperty representing the object's absolute coordinates relative to the screen (in pixels).
      Returns:
      the description instance with the update state (builder pattern).
    • absoluteLocation

      public T absoluteLocation(Point absLocation)
      Initializes the page's absolute coordinates relative to the screen (in pixels).
      0,0 is always the top-left corner of the (primary) monitor.
      Parameters:
      absLocation - a point representing the object's absolute coordinates relative to the screen (in pixels).
      Returns:
      the description instance with the update state (builder pattern).
    • size

      public T size(SizeProperty size)
      Initializes the page's size (in pixels).
      Parameters:
      size - the page's size (in pixels).
      Returns:
      the description instance with the update state (builder pattern).
    • size

      public T size(Integer width, Integer height)
      Initializes the page's size (in pixels).
      Parameters:
      width - the width of the test object (in pixels).
      height - the height of the test object (in pixels).
      Returns:
      the description instance with the update state (builder pattern).
    • size

      public T size(Dimension size)
      Initializes the page's size (in pixels).
      Parameters:
      size - the test object's size (in pixels).
      Returns:
      the description instance with the update state (builder pattern).