Share this page

com.hp.lft.sdk.web

## 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 Summary

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

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `T` | `absoluteLocation(java.lang.Integer absX, java.lang.Integer absY)` Initializes the page's absolute coordinates relative to the screen (in pixels).
    `T` | `absoluteLocation(LocationProperty absLocation)` Initializes the page's absolute coordinates relative to the screen (in pixels).
    `T` | `absoluteLocation(java.awt.Point absLocation)` Initializes the page's absolute coordinates relative to the screen (in pixels).
    `PageDescription` | `build()` Returns the built description instance (builder pattern).
    `T` | `size(java.awt.Dimension size)` Initializes the page's size (in pixels).
    `T` | `size(java.lang.Integer width, java.lang.Integer height)` Initializes the page's size (in pixels).
    `T` | `size(SizeProperty size)` Initializes the page's size (in pixels).
    `T` | `text(java.lang.String text)` Initializes the inner text of the body element.
    `T` | `text(StringProperty text)` Initializes the inner text of the body element.
    `T` | `title(java.lang.String title)` Initializes the page's title attribute.
    `T` | `title(StringProperty title)` Initializes the page's title attribute.
    `T` | `url(java.lang.String url)` Initializes the URL of the page.
    `T` | `url(StringProperty url)` Initializes the URL of the page.

    - ### 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 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(java.lang.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(java.lang.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(java.lang.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(java.lang.Integer absX,
                                    java.lang.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(java.awt.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(java.lang.Integer width,
                        java.lang.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(java.awt.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).

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: