Package com.hp.lft.sdk.web
Class WebElementDescription
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
- All Implemented Interfaces:
- CloneableObject,- Description,- com.hp.lft.sdk.internal.DescriptionWithVri,- Cloneable
- Direct Known Subclasses:
- AccordionDescription,- AreaDescription,- ButtonDescription,- CalendarDescription,- CarouselDescription,- DatePickerDescription,- DateTimeInputDescription,- DialogDescription,- FacetFilterDescription,- FormFieldDescription,- GridBaseDescription,- HeaderDescription,- ImageDescription,- LabelDescription,- LinkDescription,- MediaControlDescription,- MenubarDescription,- MenuDescription,- MenuDescription,- NavigationBarDescription,- NotificationBarDescription,- PaginatorDescription,- RadioGroupDescription,- RatingIndicatorDescription,- RoadMapDescription,- RowRepeaterDescription,- TableDescription,- TabStripDescription,- TabStripDescription,- TileDescription,- ToolBarDescription,- TreeViewDescription,- TreeViewDescription
a basic element's description.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis class can be used to construct an instance of the WebElementDescription class using the builder pattern.protected static class
- 
Field SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsModifierConstructorDescriptionConstructs a new WebElementDescription.protected
- 
Method SummaryModifier and TypeMethodDescriptionReturns the label of the object (where no text label is available).Returns the CSS Selector query used to describe the test object.getRole()Returns the object's role property.getXPath()Returns the element's XPath used to describe the test object.voidsetAccessibilityName(StringProperty accessibilityName) Sets the label of the object (where no text label is available).voidsetAccessibilityName(String accessibilityName) Sets the label of the object (where no text label is available).voidsetCSSSelector(CSSDescription cssSelector) Sets the element's CSS Selector query.voidsetCSSSelector(String cssSelector) Sets the element's CSS Selector query.voidsetRole(StringProperty role) Sets the object's role property.voidSets the object's role property.voidsetXPath(XPathDescription xpath) Sets the element's XPath.voidSets the element's XPath.Methods inherited from class com.hp.lft.sdk.web.WebBaseDescriptioncloneTo, 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, setVisibleMethods 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- 
WebElementDescriptionpublic WebElementDescription()Constructs a new WebElementDescription.
- 
WebElementDescription
 
- 
- 
Method Details- 
setXPathSets the element's XPath.- Parameters:
- xpath- the XPathDescription to be used to describe the test object.
 
- 
setXPathSets the element's XPath.- Parameters:
- xpath- the XPath to be used to describe the test object.
 
- 
getXPathReturns the element's XPath used to describe the test object.- Returns:
- the element's XPath used to describe the test object.
 
- 
setCSSSelectorSets the element's CSS Selector query.- Parameters:
- cssSelector- the CSS Selector query to be used to describe the test object.
 
- 
setCSSSelectorSets the element's CSS Selector query.- Parameters:
- cssSelector- the CSS Selector query to be used to describe the test object.
 
- 
getCSSSelectorReturns the CSS Selector query used to describe the test object.- Returns:
- the CSS Selector query used to describe the test object.
 
- 
setRoleSets the object's role property.- Parameters:
- role- the object's role property.
 
- 
setRoleSets the object's role property.- Parameters:
- role- a StringProperty (or RegExpProperty) representing the object's role property.
 
- 
getRoleReturns the object's role property.- Returns:
- the object's role property.
 
- 
setAccessibilityNameSets the label of the object (where no text label is available).- Parameters:
- accessibilityName- a StringProperty (or RegExpProperty) representing the label of the object (where no text label is available).
 
- 
setAccessibilityNameSets the label of the object (where no text label is available).- Parameters:
- accessibilityName- the label of the object (where no text label is available).
 
- 
getAccessibilityNameReturns the label of the object (where no text label is available).- Returns:
- the label of the object (where no text label is available).
 
 
-