Package com.hp.lft.sdk.web
Class BrowserDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.web.BrowserDescription
- All Implemented Interfaces:
- CloneableObject,- Description,- com.hp.lft.sdk.internal.MapHolder,- Cloneable
public class BrowserDescription
extends PropertiesDescription
implements com.hp.lft.sdk.internal.MapHolder
The description of a Web Browser test object.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis class can be used to construct an instance of the BrowserDescription class using the builder pattern.protected static classBrowserDescription.Init<T extends BrowserDescription.Init<T>>Helper class for BrowserDescription.Builder.
- 
Field SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsConstructorDescriptionInitializes a new instance of the BrowserDescription class.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidstatic BrowserDescriptionThis method creates a new instance ofBrowserDescriptionand initializes it with the given props map.Returns the current value of aBrowserDescriptioncapability.Returns the String value representation of Type.getMap()For internal use only.Returns the browser's initial title when first opened.Returns the URL from which the browser is first opened.getTitle()Returns the browser's title.getType()Returns the type of the Browser.getUrl()Returns the current URL of the browser tab.voidSets aBrowserDescriptioncapability to the given value.voidsetOpenTitle(StringProperty openTitle) Sets the browser's initial title when first opened.voidsetOpenTitle(String openTitle) Sets the browser's initial title when first opened.voidsetOpenUrl(StringProperty openURL) Sets the URL from which the browser is first opened.voidsetOpenUrl(String openURL) Sets the URL from which the browser is first opened.voidsetTitle(StringProperty title) Sets the browser's title.voidSets the browser's title.voidsetType(BrowserType type) Sets the type of the Browser.voidSets the wanted type of browser for launching.voidsetUrl(StringProperty url) Sets the current URL of the browser tab.voidSets the current URL of the browser tab.Methods inherited from class com.hp.lft.sdk.PropertiesDescriptioncloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBasegetValueAs, getValueAsStringProperty, insertValue
- 
Constructor Details- 
BrowserDescriptionpublic BrowserDescription()Initializes a new instance of the BrowserDescription class.
 
- 
- 
Method Details- 
fromMapThis method creates a new instance ofBrowserDescriptionand initializes it with the given props map.- Parameters:
- props- a- Mapof properties to initialize the- BrowserDescriptionwith.
- Returns:
- a new instance of BrowserDescriptioninitialized with the given props map.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
setOpenTitleSets the browser's initial title when first opened.- Parameters:
- openTitle- a StringProperty(or RegExpProperty) representing the browser's initial title when first opened.
 
- 
setOpenTitleSets the browser's initial title when first opened.- Parameters:
- openTitle- the browser's initial title when first opened.
 
- 
getOpenTitleReturns the browser's initial title when first opened.- Returns:
- the browser's initial title when first opened.
 
- 
setOpenUrlSets 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.
 
- 
setOpenUrlSets the URL from which the browser is first opened.- Parameters:
- openURL- the URL from which the browser is first opened.
 
- 
getOpenUrlReturns the URL from which the browser is first opened.- Returns:
- the URL from which the browser is first opened.
 
- 
setUrlSets the current URL of the browser tab.- Parameters:
- url- a StringProperty(or RegExpProperty) representing the current URL of the browser tab.
 
- 
setUrlSets the current URL of the browser tab.- Parameters:
- url- the current URL of the browser tab.
 
- 
getUrlReturns the current URL of the browser tab.- Returns:
- the current URL of the browser tab.
 
- 
setTitleSets the browser's title.- Parameters:
- title- a StringProperty(or RegExpProperty) representing the browser's title.
 
- 
setTitleSets the browser's title.- Parameters:
- title- the browser's title.
 
- 
getTitleReturns the browser's title.- Returns:
- the browser's title.
 
- 
setTypeSets the type of the Browser.- Parameters:
- type- the type of the Browser.
 
- 
setTypeSets the wanted type of browser for launching.- Parameters:
- type- the wanted type of browser for launching.
 
- 
getTypeReturns the type of the Browser.- Returns:
- the type of the Browser.
 
- 
setSets aBrowserDescriptioncapability to the given value.- Parameters:
- capability- the name of the capability to set value for.
- value- the new value of the capability.
- Throws:
- GeneralLeanFtException- if the set operation fails.
 
- 
getReturns the current value of aBrowserDescriptioncapability.- Parameters:
- capability- the capability to return the stored value of.
- Returns:
- the current value of a BrowserDescriptioncapability.
- Throws:
- GeneralLeanFtException- if the get operation fails.
 
- 
getMapFor internal use only.- Specified by:
- getMapin interface- com.hp.lft.sdk.internal.MapHolder
- Returns:
- for internal use only.
 
- 
getBrowserTypeAsStringReturns the String value representation of Type.- Returns:
- the String value representation of Type.
 
- 
cloneTo- Overrides:
- cloneToin class- com.hp.lft.sdk.internal.PropertiesDescriptionBase
- Throws:
- CloneNotSupportedException
 
 
-