Package com.hp.lft.sdk.web
Class PageDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.web.PageDescription
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
The description of a Web Page test object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class can be used to construct an instance of the PageDescription class using the builder pattern.protected static class
PageDescription.Init<T extends PageDescription.Init<T>>
Helper class for PageDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the PageDescription class.protected
PageDescription
(PageDescription.Init<?> init) Initializes a new instance of the PageDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the object's absolute coordinates relative to the screen (in pixels).getSize()
Returns the test object's size (in pixels).getText()
Returns the inner text of the body element.getTitle()
Returns the page's title attribute.getUrl()
Returns the URL of the page.void
setAbsoluteLocation
(LocationProperty absLocation) Sets the object's absolute coordinates relative to the screen (in pixels).void
setAbsoluteLocation
(Point absLocation) Sets the object's absolute coordinates relative to the screen (in pixels).void
setAbsoluteLocation
(Integer absX, Integer absY) Sets the object's absolute coordinates relative to the screen (in pixels).void
setSize
(SizeProperty size) Sets the test object's size (in pixels).void
Sets the test object's size (in pixels).void
Sets the test object's size (in pixels).void
setText
(StringProperty text) Sets the inner text of the body element.void
Sets the inner text of the body element.void
setTitle
(StringProperty title) Sets the element's title attribute (provides additional information on the element).void
Sets the element's title attribute (provides additional information on the element).void
setUrl
(StringProperty url) Sets the URL of the page.void
Sets the URL of the page.Methods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, 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
-
PageDescription
public PageDescription()Initializes a new instance of the PageDescription class. -
PageDescription
Initializes a new instance of the PageDescription class using the Builder pattern.- Parameters:
init
- the Builder pattern.
-
-
Method Details
-
setUrl
Sets the URL of the page.- Parameters:
url
- a StringProperty(or RegExpProperty) representing the URL of the page.
-
setUrl
Sets the URL of the page.- Parameters:
url
- the URL of the page.
-
getUrl
Returns the URL of the page.- Returns:
- the URL of the page.
-
setText
Sets the inner text of the body element.- Parameters:
text
- a StringProperty(or RegExpProperty) representing the inner text of the body element.
-
setText
Sets the inner text of the body element.- Parameters:
text
- the inner text of the body element.
-
getText
Returns the inner text of the body element.- Returns:
- the inner text of the body element.
-
setTitle
Sets the element's title attribute (provides additional information on the element).- Parameters:
title
- the element's title attribute (provides additional information on the element).
-
setTitle
Sets the element's title attribute (provides additional information on the element).- Parameters:
title
- a StringProperty(or RegExpProperty) representing the element's title attribute (provides additional information on the element).
-
getTitle
Returns the page's title attribute.- Returns:
- the page's title attribute.
-
setAbsoluteLocation
Sets the object's absolute coordinates relative to the screen (in pixels).
0,0 is always the top-left corner of the (primary) monitor.- Parameters:
absLocation
- a LocationProperty representing the object's absolute coordinates relative to the screen (in pixels).
-
setAbsoluteLocation
Sets the object's absolute coordinates relative to the screen (in pixels).
0,0 is always the top-left corner of the (primary) monitor.- Parameters:
absX
- the absolute X coordinate of the test object location.absY
- the absolute Y coordinate of the test object location.
-
setAbsoluteLocation
Sets the object's absolute coordinates relative to the screen (in pixels).
0,0 is always the top-left corner of the (primary) monitor.- Parameters:
absLocation
- a Point representing the object's absolute coordinates relative to the screen (in pixels).
-
getAbsoluteLocation
Returns the object's absolute coordinates relative to the screen (in pixels).- Returns:
- the object's absolute coordinates relative to the screen (in pixels).
-
setSize
Sets the test object's size (in pixels).- Parameters:
size
- the test object's size (in pixels).
-
setSize
Sets the test object's size (in pixels).- Parameters:
size
- the test object's size (in pixels).
-
setSize
Sets the test object's size (in pixels).- Parameters:
width
- the width of the test object (in pixels).height
- the height of the test object (in pixels).
-
getSize
Returns the test object's size (in pixels).- Returns:
- the test object's size (in pixels).
-