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 classNested 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.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).voidsetAttachedText(StringProperty attachedText) Sets the attached text associated with the object.voidsetAttachedText(String attachedText) Sets the attached text associated with the object.voidsetCanFocus(Boolean canFocus) Sets whether the object can receive the focus.voidsetEnabled(Boolean isEnabled) Sets whether the object is enable.voidsetFocused(Boolean isFocused) Sets whether the object has the focus.voidsetFullNamePath(StringProperty fullNamePath) Sets the full hierarchy of ObjectName with all parent objects.voidsetFullNamePath(String fullNamePath) Sets the full hierarchy of ObjectName with all parent objects.voidsetFullType(StringProperty fullType) Sets the full type name of the object.voidsetFullType(String fullType) Sets the full type name of the object.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).voidsetNativeClass(StringProperty nativeClass) Sets the object's window class name.voidsetNativeClass(String nativeClass) Sets object's window class name.voidsetObjectName(StringProperty objectName) Sets the object's window class name.voidsetObjectName(String objectName) Sets the object's name as set by the developer.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).voidsetText(StringProperty text) Sets the text associated with the object.voidSets the text associated with the object.voidsetVisible(Boolean isVisible) Sets the visibility state of the test object.voidsetWindowTitleRegExp(StringProperty windowTitleRegExp) Sets the constant part of the window title.voidsetWindowTitleRegExp(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, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.
-