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 classThis class can be used to construct an instance of the PageDescription class using the builder pattern.protected static classPageDescription.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.protectedPageDescription(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.voidsetAbsoluteLocation(LocationProperty absLocation) Sets the object's absolute coordinates relative to the screen (in pixels).voidsetAbsoluteLocation(Point absLocation) Sets the object's absolute coordinates relative to the screen (in pixels).voidsetAbsoluteLocation(Integer absX, Integer absY) Sets the object's absolute coordinates relative to the screen (in pixels).voidsetSize(SizeProperty size) Sets the test object's size (in pixels).voidSets the test object's size (in pixels).voidSets the test object's size (in pixels).voidsetText(StringProperty text) Sets the inner text of the body element.voidSets the inner text of the body element.voidsetTitle(StringProperty title) Sets the element's title attribute (provides additional information on the element).voidSets the element's title attribute (provides additional information on the element).voidsetUrl(StringProperty url) Sets the URL of the page.voidSets the URL of the page.Methods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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).
-