Package com.hp.lft.sdk.web
Class WebBaseDescription
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
- All Implemented Interfaces:
- CloneableObject,- Description,- com.hp.lft.sdk.internal.DescriptionWithVri,- Cloneable
- Direct Known Subclasses:
- FrameDescription,- WebElementDescription
A basic Web-based content description.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classWebBaseDescription.Init<T extends WebBaseDescription.Init<T>>Helper class for derived Builder classes.Nested classes/interfaces inherited from class com.hp.lft.sdk.DescriptionBaseDescriptionBase.Builder
- 
Field SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedInitializes a new instance of the WebBaseDescription class using the Builder pattern.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCreates an exact copy of the test object with its description.Returns the object's absolute coordinates relative to the screen (in pixels).Returns the test object's DOM attributes.Returns the object's CSS class.getId()Returns the object's HTML identifier.Returns the HTML code contained between the object's start and end tags.Returns the text contained between the object's start and end tags.Returns the object's coordinates relative to the parent window (in pixels).getName()Returns the object's name property.Returns the HTML code contained between the object's start and end tags.Returns the object's text.getSize()Returns the test object's size (in pixels).Returns the computed style used to describe the test object.Returns the element's tag name.getTitle()Returns the object's title attribute.Indicates whether the current object is visible.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).voidsetAttributes(Map<String, StringProperty> attributes) Sets the test object's DOM attributes.voidsetClassName(StringProperty className) Sets the object's CSS class.voidsetClassName(String className) Sets the object's CSS class.voidsetId(StringProperty id) Sets the element's HTML id.voidSets the element's HTML id.voidsetInnerHTML(StringProperty innerHTML) Sets the HTML code contained between the object's start and end tags.voidsetInnerHTML(String innerHTML) Sets the HTML code contained between the object's start and end tags.voidsetInnerText(StringProperty innerText) Sets the text contained between the object's start and end tags.voidsetInnerText(String innerText) Sets the text contained between the object's start and end tags.voidsetLocation(LocationProperty location) Sets the object's coordinates relative to the parent window (in pixels).voidsetLocation(Point location) Sets the object's coordinates relative to the parent window (in pixels).voidsetLocation(Integer x, Integer y) Sets the object's coordinates relative to the parent window (in pixels).voidsetName(StringProperty name) Sets the object's name property.voidSets the object's name property.voidsetOuterHTML(StringProperty outerHTML) Sets the HTML code contained between the object's start and end tags.voidsetOuterHTML(String outerHTML) Sets the HTML code contained between the object's start and end tags.voidsetOuterText(StringProperty outerText) Sets the object's text.voidsetOuterText(String outerText) Sets the object's text.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).voidsetStyles(Map<String, StringProperty> styles) Sets the test object's computed style.
 Note: this property is not relevant when run against Internet Explorer 8 or when the document mode of another Internet Explorer version is set to Internet 8 or earlier.voidsetTagName(StringProperty tagName) the element's tag name.voidsetTagName(String tagName) Sets the element's tag name.voidsetTitle(StringProperty title) Sets the object's title attribute.voidSets the object's title attribute.voidsetVisible(Boolean isVisible) Sets whether the object is visible.Methods inherited from class com.hp.lft.sdk.DescriptionBasegetIndex, 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- 
WebBaseDescriptionpublic WebBaseDescription()
- 
WebBaseDescriptionInitializes a new instance of the WebBaseDescription class using the Builder pattern.- Parameters:
- init- the Builder pattern.
 
 
- 
- 
Method Details- 
cloneToDescription copied from class:DescriptionBaseCreates an exact copy of the test object with its description.- Overrides:
- cloneToin class- DescriptionBase
- Throws:
- CloneNotSupportedException
 
- 
setTagNameSets the element's tag name.- Parameters:
- tagName- the element's tag name.
 
- 
setTagNamethe element's tag name.- Parameters:
- tagName- a StringProperty(or RegExpProperty) representing the element's tag name.
 
- 
getTagNameReturns the element's tag name.- Returns:
- the element's tag name.
 
- 
setIdSets the element's HTML id.- Parameters:
- id- the element's HTML id.
 
- 
setIdSets the element's HTML id.- Parameters:
- id- a StringProperty(or RegExpProperty) representing the element's HTML id.
 
- 
getIdReturns the object's HTML identifier.- Returns:
- the object's HTML identifier.
 
- 
setClassNameSets the object's CSS class.- Parameters:
- className- the object's CSS class.
 
- 
setClassNameSets the object's CSS class.- Parameters:
- className- a StringProperty(or RegExpProperty) representing the object's CSS class.
 
- 
getClassNameReturns the object's CSS class.- Returns:
- the object's CSS class.
 
- 
setInnerHTMLSets the HTML code contained between the object's start and end tags.- Parameters:
- innerHTML- the HTML code contained between the object's start and end tags.
 
- 
setInnerHTMLSets the HTML code contained between the object's start and end tags.- Parameters:
- innerHTML- a StringProperty(or RegExpProperty) representing the HTML code contained between the object's start and end tags.
 
- 
getInnerHTMLReturns the HTML code contained between the object's start and end tags.- Returns:
- the HTML code contained between the object's start and end tags.
 
- 
setOuterHTMLSets the HTML code contained between the object's start and end tags.- Parameters:
- outerHTML- the HTML code contained between the object's start and end tags.
 
- 
setOuterHTMLSets the HTML code contained between the object's start and end tags.- Parameters:
- outerHTML- a StringProperty(or RegExpProperty) representing the HTML code contained between the object's start and end tags.
 
- 
getOuterHTMLReturns the HTML code contained between the object's start and end tags.- Returns:
- the HTML code contained between the object's start and end tags.
 
- 
setInnerTextSets the text contained between the object's start and end tags.- Parameters:
- innerText- the text contained between the object's start and end tags.
 
- 
setInnerTextSets the text contained between the object's start and end tags.- Parameters:
- innerText- a StringProperty(or RegExpProperty) representing the text contained between the object's start and end tags.
 
- 
getInnerTextReturns the text contained between the object's start and end tags.- Returns:
- the text contained between the object's start and end tags.
 
- 
setOuterTextSets the object's text.
 Supported in Internet Explorer only.- Parameters:
- outerText- the element's text (including all sub elements) with the element's wrapping text.
 
- 
setOuterTextSets the object's text.
 Supported in Internet Explorer only.- Parameters:
- outerText- a StringProperty(or RegExpProperty) representing the object's text.
 
- 
getOuterTextReturns the object's text.
 Supported in Internet Explorer only.- Returns:
- the object's text.
 
- 
setNameSets the object's name property.- Parameters:
- name- the element's name property.
 
- 
setNameSets the object's name property.- Parameters:
- name- a StringProperty(or RegExpProperty) representing the element's name property.
 
- 
getNameReturns the object's name property.- Returns:
- the object's name property.
 
- 
setTitleSets the object's title attribute.- Parameters:
- title- the object's title attribute.
 
- 
setTitleSets the object's title attribute.- Parameters:
- title- a StringProperty(or RegExpProperty) representing the object's title attribute.
 
- 
getTitleReturns the object's title attribute.- Returns:
- the object's title attribute.
 
- 
setVisibleSets whether the object is visible.- Parameters:
- isVisible- the visibility state of the test object.
 
- 
isVisibleIndicates whether the current object is visible.- Returns:
- true, if the current object is visible.
 
- 
setLocationSets the object's coordinates relative to the parent window (in pixels).- Parameters:
- location- a LocationProperty representing the object's coordinates relative to the parent window (in pixels).
 
- 
setLocationSets the object's coordinates relative to the parent window (in pixels).- Parameters:
- x- the X coordinate of the test object location.
- y- the Y coordinate of the test object location.
 
- 
setLocationSets the object's coordinates relative to the parent window (in pixels).- Parameters:
- location- a Point representing the object's coordinates relative to the parent window (in pixels).
 
- 
getLocationReturns the object's coordinates relative to the parent window (in pixels).- Returns:
- the object's coordinates relative to the parent window (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:
- 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).
 0,0 is always the top-left corner of the (primary) monitor.- Returns:
- the object's absolute coordinates relative to the screen (in pixels).
 
- 
setAttributesSets the test object's DOM attributes.- Parameters:
- attributes- the attributes used to describe the test object.
 
- 
getAttributesReturns the test object's DOM attributes.- Returns:
- the attributes used to describe the test object.
 
- 
setStylesSets the test object's computed style.
 Note: this property is not relevant when run against Internet Explorer 8 or when the document mode of another Internet Explorer version is set to Internet 8 or earlier.- Parameters:
- styles- the computed styles to describe the test object.
 
- 
getStylesReturns the computed style used to describe the test object.- Returns:
- the computed style used to describe the test object.
 
- 
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).
 
 
-