Package com.hp.lft.sdk.web
Class LinkDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.web.WebBaseDescription
com.hp.lft.sdk.web.WebElementDescription
com.hp.lft.sdk.web.LinkDescription
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
The description of a Web Link test object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class can be used to construct an instance of the LinkDescription class using the builder pattern.protected static class
LinkDescription.Init<T extends LinkDescription.Init<T>>
Helper class for LinkDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the Link class.protected
LinkDescription
(LinkDescription.Init<?> init) Initializes a new instance of the LinkDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the link's background color.getColor()
Returns the link's color.Returns the link's font name.getHref()
Returns the location to which the browser navigates when the image is clicked.Returns the target frame of the navigation.void
setBackgroundColor
(StringProperty color) Sets the link's background color.void
setBackgroundColor
(String color) Sets the link's background color.void
setColor
(StringProperty color) Sets the link's color.void
Sets the link's color.void
setFontName
(StringProperty fontName) Sets the link's font name.void
setFontName
(String fontName) Sets the link's font name.void
setHref
(StringProperty href) Sets the location to which the browser navigates when the image is clicked.void
Sets the location to which the browser navigates when the image is clicked.void
setTarget
(StringProperty target) Sets the name of the frame that will be navigated to when the user clicks on the frame.void
Sets the name of the frame that will be navigated to when the user clicks on the frame.Methods inherited from class com.hp.lft.sdk.web.WebElementDescription
getAccessibilityName, getCSSSelector, getRole, getXPath, setAccessibilityName, setAccessibilityName, setCSSSelector, setCSSSelector, setRole, setRole, setXPath, setXPath
Methods inherited from class com.hp.lft.sdk.web.WebBaseDescription
cloneTo, getAbsoluteLocation, getAttributes, getClassName, getId, getInnerHTML, getInnerText, getLocation, getName, getOuterHTML, getOuterText, getSize, getStyles, getTagName, getTitle, isVisible, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttributes, setClassName, setClassName, setId, setId, setInnerHTML, setInnerHTML, setInnerText, setInnerText, setLocation, setLocation, setLocation, setName, setName, setOuterHTML, setOuterHTML, setOuterText, setOuterText, setSize, setSize, setSize, setStyles, setTagName, setTagName, setTitle, setTitle, setVisible
Methods inherited from class com.hp.lft.sdk.DescriptionBase
getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRI
Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValue
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.hp.lft.sdk.CloneableObject
clone
-
Constructor Details
-
LinkDescription
public LinkDescription()Initializes a new instance of the Link class. -
LinkDescription
Initializes a new instance of the LinkDescription class using the Builder pattern.- Parameters:
init
- the Builder pattern.
-
-
Method Details
-
setTarget
Sets the name of the frame that will be navigated to when the user clicks on the frame.- Parameters:
target
- a StringProperty(or RegExpProperty) representing the name of the target frame of the navigation. Possible values: Any valid HTML target attribute value, for example, framename, _blank, or _self.
-
setTarget
Sets the name of the frame that will be navigated to when the user clicks on the frame.- Parameters:
target
- the target frame of the navigation. Possible values: Any valid HTML target attribute value, for example, framename, _blank, or _self.
-
getTarget
Returns the target frame of the navigation.- Returns:
- the name of the frame target frame of the navigation. Possible values: Any valid HTML target attribute value, for example, framename, _blank, or _self.
-
setFontName
Sets the link's font name.- Parameters:
fontName
- a StringProperty(or RegExpProperty) representing the font name.
-
setFontName
Sets the link's font name.- Parameters:
fontName
- the font name.
-
getFontName
Returns the link's font name.- Returns:
- the link's font name.
-
setHref
Sets the location to which the browser navigates when the image is clicked.- Parameters:
href
- a StringProperty(or RegExpProperty) representing the location to which the browser navigates when the image is clicked.
-
setHref
Sets the location to which the browser navigates when the image is clicked.- Parameters:
href
- the location to which the browser navigates when the image is clicked.
-
getHref
Returns the location to which the browser navigates when the image is clicked.- Returns:
- the location to which the browser navigates when the image is clicked.
-
setColor
Sets the link's color.- Parameters:
color
- a StringProperty(or RegExpProperty) representing the link's color.
-
setColor
Sets the link's color.- Parameters:
color
- the link's color.
-
getColor
Returns the link's color.- Returns:
- the link's color.
-
setBackgroundColor
Sets the link's background color.- Parameters:
color
- a StringProperty(or RegExpProperty) representing the link's background color.
-
setBackgroundColor
Sets the link's background color.- Parameters:
color
- the link's background color.
-
getBackgroundColor
Returns the link's background color.- Returns:
- the link's background color.
-