Share this page

com.hp.lft.sdk.web

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

- java.lang.Object
- - com.hp.lft.sdk.web.BrowserDescription.Init<T>

- Direct Known Subclasses:
    BrowserDescription.Builder
  Enclosing class:
    BrowserDescription

      protected abstract static class BrowserDescription.Init<T extends BrowserDescription.Init<T>>
      extends java.lang.Object

  Helper class for BrowserDescription.Builder.

- - ### Constructor Summary

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

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `BrowserDescription` | `build()`
    `T` | `openTitle(java.lang.String openTitle)` Initializes the browser's initial title when first opened.
    `T` | `openTitle(StringProperty openTitle)` Initializes the browser's initial title when first opened.
    `T` | `openURL(java.lang.String openURL)` Initializes the URL from which the browser is first opened.
    `T` | `openURL(StringProperty openURL)` Initializes the URL from which the browser is first opened.
    `protected abstract T` | `self()`
    `T` | `set(java.lang.String capability, java.lang.Object value)` Initializes a `BrowserDescription` capability to the given value.
    `T` | `title(java.lang.String title)` Initializes the browser's title.
    `T` | `title(StringProperty title)` Initializes the browser's title.
    `T` | `type(BrowserType type)` Initializes the type of the Browser.
    `T` | `url(java.lang.String url)` Initializes the current URL of the browser tab.
    `T` | `url(StringProperty url)` Initializes the current URL of the browser tab.

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

    - #### self

          protected abstract T self()

    - #### build

          public BrowserDescription build()

    - #### openTitle

          public T openTitle(java.lang.String openTitle)

      Initializes the browser's initial title when first opened.
      Parameters:
        `openTitle` - the browser's initial title when first opened.
      Returns:
        the description instance with the update state (builder pattern).

    - #### openTitle

          public T openTitle(StringProperty openTitle)

      Initializes the browser's initial title when first opened.
      Parameters:
        `openTitle` - a StringProperty(or RegExpProperty) representing the browser's initial title when first opened.
      Returns:
        the description instance with the update state (builder pattern).

    - #### openURL

          public T openURL(java.lang.String openURL)

      Initializes the URL from which the browser is first opened.
      Parameters:
        `openURL` - the URL from which the browser is first opened.
      Returns:
        the description instance with the update state (builder pattern).

    - #### openURL

          public T openURL(StringProperty openURL)

      Initializes the URL from which the browser is first opened.
      Parameters:
        `openURL` - a StringProperty(or RegExpProperty) representing the URL from which the browser is first opened.
      Returns:
        the description instance with the update state (builder pattern).

    - #### title

          public T title(java.lang.String title)

      Initializes the browser's title.
      Parameters:
        `title` - the browser's title.
      Returns:
        the description instance with the update state (builder pattern).

    - #### title

          public T title(StringProperty title)

      Initializes the browser's title.
      Parameters:
        `title` - a StringProperty(or RegExpProperty) representing the browser's title.
      Returns:
        the description instance with the update state (builder pattern).

    - #### url

          public T url(java.lang.String url)

      Initializes the current URL of the browser tab.
      Parameters:
        `url` - the current URL of the browser tab.
      Returns:
        the description instance with the update state (builder pattern).

    - #### url

          public T url(StringProperty url)

      Initializes the current URL of the browser tab.
      Parameters:
        `url` - a StringProperty(or RegExpProperty) representing the current URL of the browser tab.
      Returns:
        the description instance with the update state (builder pattern).

    - #### type

          public T type(BrowserType type)

      Initializes the type of the Browser.
      Parameters:
        `type` - the type of the Browser.
      Returns:
        the description instance with the update state (builder pattern).

    - #### set

          public T set(java.lang.String capability,
                       java.lang.Object value)

      Initializes a `BrowserDescription` capability to the given value.
      Parameters:
        `capability` - the name of the capability to set value for.
        `value` - the new value of the capability.
      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: