Package com.hp.lft.sdk.web
Interface WebTestObject
- All Superinterfaces:
LocationInfoProvider
,SupportsNativeObject
,TestObjectDescriber
,VisibleProvider
,WaitUntilVisibleProvider
,WebTestObjectDescriber
- All Known Subinterfaces:
Accordion
,AgGrid
,Area
,AudioControl
,Button
,Button
,Calendar
,Carousel
,CheckBox
,CheckBox
,DatePicker
,DateTimeInput
,Dialog
,EditField
,EditField
,FacetFilter
,FileField
,Frame
,GridBase<T>
,Header
,Image
,Label
,Link
,ListBox
,ListBox
,Menu
,Menu
,Menubar
,NavigationBar
,NotificationBar
,NumericField
,Paginator
,Password
,RadioButton
,RadioGroup
,RadioGroup
,RatingIndicator
,RoadMap
,RowRepeater
,Slider
,Table
,Table
,TabStrip
,TabStrip
,Tile
,ToggleButton
,ToolBar
,TreeView
,TreeView
,UiGrid
,VideoControl
,WebElement
public interface WebTestObject
extends LocationInfoProvider, WebTestObjectDescriber, SupportsNativeObject, WaitUntilVisibleProvider
A generic Web test object used only for implementation. Do not use to describe a concrete web test object.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String attributeName) Returns the value of a single attribute.Returns a copy of the collection of attributes that is attached to the element, for example, "id","class",etc.Returns the element's CSS class.getComputedStyle
(String styleProperty) Returns the value of a single style.Returns the element's computed styles as a dictionary with the name of the style as the key.getId()
Returns the element's HTML identifier.Returns the element's HTML not including the current element.Returns the text contained between the object's start and end tags.getName()
Returns the object's name.Returns the element's HTML, including the current element.Returns the object's text.Returns the element's tag name.getTitle()
Returns the element's title attribute.boolean
Indicates whether the current element is visible.Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSize
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
Methods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriber
describe, describe
-
Method Details
-
getClassName
Returns the element's CSS class.- Returns:
- the element's CSS class.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getId
Returns the element's HTML identifier.- Returns:
- the element's HTML identifier.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getTagName
Returns the element's tag name.- Returns:
- the element's tag name.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getInnerHTML
Returns the element's HTML not including the current element.- Returns:
- the element's HTML not including the current element.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getOuterHTML
Returns the element's HTML, including the current element.- Returns:
- the element's HTML, including the current element.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getInnerText
Returns the text contained between the object's start and end tags.- Returns:
- the text contained between the object's start and end tags.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getOuterText
Returns the object's text.
Note: Supported in Internet Explorer only.- Returns:
- the object's text.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getName
Returns the object's name.- Returns:
- the object's name.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getTitle
Returns the element's title attribute.- Returns:
- the element's title attribute.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isVisible
Indicates whether the current element is visible.- Specified by:
isVisible
in interfaceVisibleProvider
- Returns:
- true, if the current element is visible.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getAttributes
Returns a copy of the collection of attributes that is attached to the element, for example, "id","class",etc.- Returns:
- a copy of the collection of attributes that is attached to the element for example, "id","class",etc.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getAttribute
Returns the value of a single attribute.- Parameters:
attributeName
- the attribute name for the value to retrieve.- Returns:
- the value of the specified attribute (null if the attribute does not exist).
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getComputedStyles
Returns the element's computed styles as a dictionary with the name of the style as the key.- Returns:
- the element's computed styles as a dictionary with the name of the style as the key.
Note: returns an empty collection when run against Internet Explorer 8 or when the document mode of another Internet Explorer version is set to Internet 8 or earlier. - Throws:
GeneralLeanFtException
- if error occurs during execution
-
getComputedStyle
Returns the value of a single style.- Parameters:
styleProperty
- the style property for the value to retrieve.- Returns:
- the value of the specified style (null if the style property does not exist).
- Throws:
GeneralLeanFtException
- if error occurs during execution
-