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 Object
Helper class for BrowserDescription.Builder.
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • self

      protected abstract T self()
    • build

      public BrowserDescription build()
    • openTitle

      public T openTitle(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(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(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(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(String capability, 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).