Package com.hp.lft.sdk.web
Class WebBaseDescription.Init<T extends WebBaseDescription.Init<T>>
java.lang.Object
com.hp.lft.sdk.DescriptionBase.Init<T>
com.hp.lft.sdk.web.WebBaseDescription.Init<T>
- Direct Known Subclasses:
FrameDescription.Init
,WebElementDescription.Init
- Enclosing class:
- WebBaseDescription
protected abstract static class WebBaseDescription.Init<T extends WebBaseDescription.Init<T>>
extends DescriptionBase.Init<T>
Helper class for derived Builder classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabsoluteLocation
(LocationProperty absLocation) Initializes the object's absolute coordinates relative to the screen (in pixels).absoluteLocation
(Point absLocation) Initializes the object's absolute coordinates relative to the screen (in pixels).absoluteLocation
(Integer absX, Integer absY) Initializes the object's absolute coordinates relative to the screen (in pixels).attribute
(String name, StringProperty value) Initializes the test object DOM attributes.Initializes the test object DOM attributes.attributes
(Map<String, StringProperty> attributes) Initializes the test object DOM attributes.className
(StringProperty className) Initializes the element's CSS classInitializes the element's CSS classid
(StringProperty id) Initializes the element's HTML id.Initializes the element's HTML id.innerHTML
(StringProperty innerHTML) Initializes the element's HTML not including the current element.Initializes the element's HTML not including the current element.innerText
(StringProperty innerText) Initializes the element's text (including all sub elements), not including the wrapped text.Initializes the element's text (including all sub elements), not including the wrapped text.location
(LocationProperty location) Initializes the object's coordinates relative to the parent window (in pixels).Initializes the object's coordinates relative to the parent window (in pixels).Initializes the object's coordinates relative to the parent window (in pixels).name
(StringProperty name) Initializes the element's name property.Initializes the element's name property.outerHTML
(StringProperty outerHTML) Initializes the element's HTML including the current element.Initializes the element's HTML including the current element.outerText
(StringProperty outerText) Initializes the element's text (including all sub elements) with the element's wrapping text.Initializes the element's text (including all sub elements) with the element's wrapping text.size
(SizeProperty size) Initializes the test object's size (in pixels).Initializes the test object's size (in pixels).Initializes the test object's size (in pixels).style
(String styleName, StringProperty value) Initializes the test object DOM attributes.Initializes the test object DOM attributes.styles
(Map<String, StringProperty> styles) Initializes the test object computed style.tagName
(StringProperty tagName) Initializes the element's tag name.Initializes the element's tag name.title
(StringProperty title) Initializes the element's title attribute (provides additional information on the element).Initializes the element's title attribute (provides additional information on the element).Initializes whether the current element is visible.Methods inherited from class com.hp.lft.sdk.DescriptionBase.Init
build, index, objectProperties, self, vri, vri
-
Constructor Details
-
Init
protected Init()
-
-
Method Details
-
tagName
Initializes the element's tag name.- Parameters:
tagName
- the element's tag name.- Returns:
- the description instance with the update state (builder pattern).
-
tagName
Initializes the element's tag name.- Parameters:
tagName
- a StringProperty(or RegExpProperty) representing the element's tag name.- Returns:
- the description instance with the update state (builder pattern).
-
id
Initializes the element's HTML id.- Parameters:
id
- the element's HTML id.- Returns:
- the description instance with the update state (builder pattern).
-
id
Initializes the element's HTML id.- Parameters:
id
- a StringProperty(or RegExpProperty) representing the element's HTML id.- Returns:
- the description instance with the update state (builder pattern).
-
className
Initializes the element's CSS class- Parameters:
className
- the element's CSS class- Returns:
- the description instance with the update state (builder pattern).
-
className
Initializes the element's CSS class- Parameters:
className
- a StringProperty(or RegExpProperty) representing the element's CSS class- Returns:
- the description instance with the update state (builder pattern).
-
innerHTML
Initializes the element's HTML not including the current element.- Parameters:
innerHTML
- the element's HTML not including the current element.- Returns:
- the description instance with the update state (builder pattern).
-
innerHTML
Initializes the element's HTML not including the current element.- Parameters:
innerHTML
- a StringProperty(or RegExpProperty) representing the element's HTML not including the current element.- Returns:
- the description instance with the update state (builder pattern).
-
outerHTML
Initializes the element's HTML including the current element.- Parameters:
outerHTML
- the element's HTML including the current element.- Returns:
- the description instance with the update state (builder pattern).
-
outerHTML
Initializes the element's HTML including the current element.- Parameters:
outerHTML
- a StringProperty(or RegExpProperty) representing the element's HTML including the current element.- Returns:
- the description instance with the update state (builder pattern).
-
innerText
Initializes the element's text (including all sub elements), not including the wrapped text.- Parameters:
innerText
- the element's text (including all sub elements), not including the wrapped text.- Returns:
- the description instance with the update state (builder pattern).
-
innerText
Initializes the element's text (including all sub elements), not including the wrapped text.- Parameters:
innerText
- a StringProperty(or RegExpProperty) representing the element's text (including all sub elements), not including the wrapped text.- Returns:
- the description instance with the update state (builder pattern).
-
outerText
Initializes the element's text (including all sub elements) with the element's wrapping text.- Parameters:
outerText
- the element's text (including all sub elements) with the element's wrapping text.- Returns:
- the description instance with the update state (builder pattern).
-
outerText
Initializes the element's text (including all sub elements) with the element's wrapping text.- Parameters:
outerText
- a StringProperty(or RegExpProperty) representing the element's text (including all sub elements) with the element's wrapping text.- Returns:
- the description instance with the update state (builder pattern).
-
name
Initializes the element's name property.- Parameters:
name
- the element's name property.- Returns:
- the description instance with the update state (builder pattern).
-
name
Initializes the element's name property.- Parameters:
name
- a StringProperty(or RegExpProperty) representing the element's name property.- Returns:
- the description instance with the update state (builder pattern).
-
title
Initializes the element's title attribute (provides additional information on the element).- Parameters:
title
- the element's title attribute (provides additional information on the element).- Returns:
- the description instance with the update state (builder pattern).
-
title
Initializes 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).- Returns:
- the description instance with the update state (builder pattern).
-
visible
Initializes whether the current element is visible.- Parameters:
isVisible
- whether the current element is visible.- Returns:
- the description instance with the update state (builder pattern).
-
location
Initializes 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.- Returns:
- the description instance with the update state (builder pattern).
-
location
Initializes 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).- Returns:
- the description instance with the update state (builder pattern).
-
location
Initializes 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).- Returns:
- the description instance with the update state (builder pattern).
-
absoluteLocation
Initializes 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.- Returns:
- the description instance with the update state (builder pattern).
-
absoluteLocation
Initializes 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).- Returns:
- the description instance with the update state (builder pattern).
-
absoluteLocation
Initializes 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).- Returns:
- the description instance with the update state (builder pattern).
-
size
Initializes the test object's size (in pixels).- Parameters:
size
- the test object's size (in pixels).- Returns:
- the description instance with the update state (builder pattern).
-
size
Initializes 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).- Returns:
- the description instance with the update state (builder pattern).
-
size
Initializes the test object's size (in pixels).- Parameters:
size
- the test object's size (in pixels).- Returns:
- the description instance with the update state (builder pattern).
-
attributes
Initializes the test object DOM attributes.- Parameters:
attributes
- the attributes the describe the test object by.- Returns:
- the description instance with the update state (builder pattern).
-
attribute
Initializes the test object DOM attributes.- Parameters:
name
- the attribute name to be added to the attributes collection the describe the test object by.value
- the attribute value to be added to the attributes collection the describe the test object by.- Returns:
- the description instance with the update state (builder pattern).
-
attribute
Initializes the test object DOM attributes.- Parameters:
name
- the attribute name to be added to the attributes collection the describe the test object by.value
- the attribute value to be added to the attributes collection the describe the test object by.- Returns:
- the description instance with the update state (builder pattern).
-
styles
Initializes the test object computed style.- Parameters:
styles
- the computed style to describe the test object by.- Returns:
- the description instance with the update state (builder pattern).
-
style
Initializes the test object DOM attributes.- Parameters:
styleName
- the style name to be added to the styles collection the describe the test object by.value
- the style value to be added to the styles collection the describe the test object by.- Returns:
- the description instance with the update state (builder pattern).
-
style
Initializes the test object DOM attributes.- Parameters:
styleName
- the style name to be added to the styles collection the describe the test object by.value
- the style value to be added to the styles collection the describe the test object by.- Returns:
- the description instance with the update state (builder pattern).
-