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 SummaryNested 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 SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsModifierConstructorDescriptionInitializes a new instance of the PageDescription class.protectedPageDescription(PageDescription.Init<?> init) Initializes a new instance of the PageDescription class using the Builder pattern.
- 
Method SummaryModifier 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.DescriptionBasecloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescriptioncloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBasegetValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObjectclone
- 
Constructor Details- 
PageDescriptionpublic PageDescription()Initializes a new instance of the PageDescription class.
- 
PageDescriptionInitializes a new instance of the PageDescription class using the Builder pattern.- Parameters:
- init- the Builder pattern.
 
 
- 
- 
Method Details- 
setUrlSets the URL of the page.- Parameters:
- url- a StringProperty(or RegExpProperty) representing the URL of the page.
 
- 
setUrlSets the URL of the page.- Parameters:
- url- the URL of the page.
 
- 
getUrlReturns the URL of the page.- Returns:
- the URL of the page.
 
- 
setTextSets the inner text of the body element.- Parameters:
- text- a StringProperty(or RegExpProperty) representing the inner text of the body element.
 
- 
setTextSets the inner text of the body element.- Parameters:
- text- the inner text of the body element.
 
- 
getTextReturns the inner text of the body element.- Returns:
- the inner text of the body element.
 
- 
setTitleSets the element's title attribute (provides additional information on the element).- Parameters:
- title- the element's title attribute (provides additional information on the element).
 
- 
setTitleSets 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).
 
- 
getTitleReturns the page's title attribute.- Returns:
- the page's title attribute.
 
- 
setAbsoluteLocationSets 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).
 
- 
setAbsoluteLocationSets 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.
 
- 
setAbsoluteLocationSets 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).
 
- 
getAbsoluteLocationReturns the object's absolute coordinates relative to the screen (in pixels).- Returns:
- the object's absolute coordinates relative to the screen (in pixels).
 
- 
setSizeSets the test object's size (in pixels).- Parameters:
- size- the test object's size (in pixels).
 
- 
setSizeSets the test object's size (in pixels).- Parameters:
- size- the test object's size (in pixels).
 
- 
setSizeSets 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).
 
- 
getSizeReturns the test object's size (in pixels).- Returns:
- the test object's size (in pixels).
 
 
-