Package 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 Object
Helper class for BrowserDescription.Builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
openTitle
(StringProperty openTitle) Initializes the browser's initial title when first opened.Initializes the browser's initial title when first opened.openURL
(StringProperty openURL) Initializes the URL from which the browser is first opened.Initializes the URL from which the browser is first opened.protected abstract T
self()
Initializes aBrowserDescription
capability to the given value.title
(StringProperty title) Initializes the browser's title.Initializes the browser's title.type
(BrowserType type) Initializes the type of the Browser.url
(StringProperty url) Initializes the current URL of the browser tab.Initializes the current URL of the browser tab.
-
Constructor Details
-
Init
protected Init()
-
-
Method Details
-
self
-
build
-
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
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
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
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
Initializes the browser's title.- Parameters:
title
- the browser's title.- Returns:
- the description instance with the update state (builder pattern).
-
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
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
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
Initializes the type of the Browser.- Parameters:
type
- the type of the Browser.- Returns:
- the description instance with the update state (builder pattern).
-
set
Initializes aBrowserDescription
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).
-