Package com.hp.lft.sdk.wpf
Class UiObjectDescriptionBase
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.wpf.UiObjectDescriptionBase
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
- Direct Known Subclasses:
ButtonDescription
,CalendarDescription
,CheckBoxDescription
,ComboBoxDescription
,EditFieldDescription
,ImageDescription
,LinkDescription
,ListDescription
,MenuDescription
,ProgressBarDescription
,RadioButtonDescription
,ScrollBarDescription
,SliderDescription
,StatusBarDescription
,TableDescription
,TabStripDescription
,ToolBarDescription
,TreeViewDescription
,UiObjectDescription
,WindowDescription
The base description of all WPF test objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Nested classes/interfaces inherited from class com.hp.lft.sdk.DescriptionBase
DescriptionBase.Builder
-
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the UiObjectDescriptionBase class.protected
-
Method Summary
Modifier and TypeMethodDescriptioncanFocus()
Indicates whether the object can receive the focus.Returns the object's absolute coordinates relative to the screen (in pixels).Returns the attached text associated with the object.Returns the full hierarchy of ObjectName with all parent objects.Returns the full type name of the object.Returns the object's coordinates relative to the parent window (in pixels).Returns the object's window class name.Returns the object's name as set by the developer.getSize()
Returns the test object's size (in pixels).getText()
Returns the text associated with the object.Returns the constant part of the window title.Indicates whether the object is enabled.Indicates whether the object has the focus.Indicates whether the current element is visible.void
setAbsoluteLocation
(LocationProperty absLocation) Sets the object's absolute coordinates relative to the screen (in pixels).void
setAbsoluteLocation
(Point absLocation) Sets the object's absolute coordinates relative to the screen (in pixels).void
setAbsoluteLocation
(Integer absX, Integer absY) Sets the object's absolute coordinates relative to the screen (in pixels).void
setAttachedText
(StringProperty attachedText) Sets the attached text associated with the object.void
setAttachedText
(String attachedText) Sets the attached text associated with the object.void
setCanFocus
(Boolean canFocus) Sets whether the object can receive the focus.void
setEnabled
(Boolean isEnabled) Sets whether the object is enable.void
setFocused
(Boolean isFocused) Sets whether the object has the focus.void
setFullNamePath
(StringProperty fullNamePath) Sets the full hierarchy of ObjectName with all parent objects.void
setFullNamePath
(String fullNamePath) Sets the full hierarchy of ObjectName with all parent objects.void
setFullType
(StringProperty fullType) Sets the full type name of the object.void
setFullType
(String fullType) Sets the full type name of the object.void
setLocation
(LocationProperty location) Sets the object's coordinates relative to the parent window (in pixels).void
setLocation
(Point location) Sets the object's coordinates relative to the parent window (in pixels).void
setLocation
(Integer x, Integer y) Sets the object's coordinates relative to the parent window (in pixels).void
setNativeClass
(StringProperty nativeClass) Sets the object's window class name.void
setNativeClass
(String nativeClass) Sets object's window class name.void
setObjectName
(StringProperty objectName) Sets the object's window class name.void
setObjectName
(String objectName) Sets the object's name as set by the developer.void
setSize
(SizeProperty size) Sets the test object's size (in pixels).void
Sets the test object's size (in pixels).void
Sets the test object's size (in pixels).void
setText
(StringProperty text) Sets the text associated with the object.void
Sets the text associated with the object.void
setVisible
(Boolean isVisible) Sets the visibility state of the test object.void
setWindowTitleRegExp
(StringProperty windowTitleRegExp) Sets the constant part of the window title.void
setWindowTitleRegExp
(String windowTitleRegExp) Sets the constant part of the window title.Methods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRI
Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValue
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.hp.lft.sdk.CloneableObject
clone
-
Constructor Details
-
UiObjectDescriptionBase
public UiObjectDescriptionBase()Initializes a new instance of the UiObjectDescriptionBase class. -
UiObjectDescriptionBase
-
-
Method Details
-
setNativeClass
Sets object's window class name.- Parameters:
nativeClass
- object's window class name.
-
setNativeClass
Sets the object's window class name.- Parameters:
nativeClass
- a StringProperty (or RegExpProperty) representing the the object's window class name.
-
getNativeClass
Returns the object's window class name.- Returns:
- the object's window class name.
-
setEnabled
Sets whether the object is enable.- Parameters:
isEnabled
- whether the object is enable
-
isEnabled
Indicates whether the object is enabled.- Returns:
- true, if the current element is enabled.
-
setFocused
Sets whether the object has the focus.- Parameters:
isFocused
- whether the object has the focus.
-
isFocused
Indicates whether the object has the focus.- Returns:
- true, if the current element is focused.
-
setWindowTitleRegExp
Sets the constant part of the window title.- Parameters:
windowTitleRegExp
- constant part of the window title.
-
setWindowTitleRegExp
Sets the constant part of the window title.- Parameters:
windowTitleRegExp
- constant part of the window title.
-
getWindowTitleRegExp
Returns the constant part of the window title.- Returns:
- the constant part of the window title.
-
setVisible
Sets the visibility state of the test object.- Parameters:
isVisible
- the visibility state of the test object.
-
isVisible
Indicates whether the current element is visible.- Returns:
- true, if the current element is visible.
-
setCanFocus
Sets whether the object can receive the focus.- Parameters:
canFocus
- whether the object can receive the focus.
-
canFocus
Indicates whether the object can receive the focus.- Returns:
- true, if the object can receive the focus.
-
setText
Sets the text associated with the object.- Parameters:
text
- the text associated with the object.
-
setText
Sets the text associated with the object.- Parameters:
text
- a StringProperty (or RegExpProperty) representing the text associated with the object.
-
getText
Returns the text associated with the object.- Returns:
- the text associated with the object.
-
setAttachedText
Sets the attached text associated with the object.- Parameters:
attachedText
- the attached text associated with the object.
-
setAttachedText
Sets the attached text associated with the object.- Parameters:
attachedText
- a StringProperty (or RegExpProperty) representing the attached text.
-
getAttachedText
Returns the attached text associated with the object.- Returns:
- the attached text associated with the object.
-
setLocation
Sets 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).
-
setLocation
Sets 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.
-
setLocation
Sets 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).
-
getLocation
Returns the object's coordinates relative to the parent window (in pixels).- Returns:
- the object's coordinates relative to the parent window (in pixels).
-
setAbsoluteLocation
Sets 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).
-
setAbsoluteLocation
Sets 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.
-
setAbsoluteLocation
Sets 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).
-
getAbsoluteLocation
Returns the object's absolute coordinates relative to the screen (in pixels).- Returns:
- the object's absolute coordinates relative to the screen (in pixels).
-
setSize
Sets the test object's size (in pixels).- Parameters:
size
- the test object's size (in pixels).
-
setSize
Sets the test object's size (in pixels).- Parameters:
size
- the test object's size (in pixels).
-
setSize
Sets 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).
-
getSize
Returns the test object's size (in pixels).- Returns:
- the test object's size (in pixels).
-
setObjectName
Sets the object's name as set by the developer.- Parameters:
objectName
- the object's name as set by the developer.
-
setObjectName
Sets the object's window class name.- Parameters:
objectName
- the object's name as set by the developer.
-
getObjectName
Returns the object's name as set by the developer.- Returns:
- the object's name as set by the developer.
-
setFullNamePath
Sets the full hierarchy of ObjectName with all parent objects.- Parameters:
fullNamePath
- the full hierarchy of ObjectName with all parent objects.
-
setFullNamePath
Sets the full hierarchy of ObjectName with all parent objects.- Parameters:
fullNamePath
- the full hierarchy of ObjectName with all parent objects.
-
getFullNamePath
Returns the full hierarchy of ObjectName with all parent objects.- Returns:
- the full hierarchy of ObjectName with all parent objects.
-
setFullType
Sets the full type name of the object.- Parameters:
fullType
- the full type name of the object.
-
setFullType
Sets the full type name of the object.- Parameters:
fullType
- the full type name of the object.
-
getFullType
Returns the full type name of the object.- Returns:
- the full type name of the object.
-