Package com.hp.lft.sdk.uiapro
Class UiObjectBaseDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.uiapro.UiObjectBaseDescription
- All Implemented Interfaces:
CloneableObject,Description,com.hp.lft.sdk.internal.DescriptionWithVri,Cloneable
- Direct Known Subclasses:
AppBarDescription,ButtonDescription,CalendarDescription,CheckBoxDescription,ComboBoxDescription,DocumentDescription,EditDescription,GridDescription,GridItemDescription,GroupDescription,HeaderDescription,HeaderItemDescription,ImageDescription,LinkDescription,ListDescription,ListItemDescription,MenuBarDescription,MenuDescription,MenuItemDescription,PaneDescription,ProgressBarDescription,RadioButtonDescription,ScrollBarDescription,SemanticZoomDescription,SeparatorDescription,SliderDescription,SpinnerDescription,SplitButtonDescription,StatusBarDescription,TabControlDescription,TabItemDescription,TableDescription,TextDescription,ThumbDescription,TitleBarDescription,ToolBarDescription,ToolTipDescription,TreeViewDescription,TreeViewItemDescription,UiObjectDescription,WindowDescription
The base description of all UIAPro 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 UiObjectBaseDescription class.protected -
Method Summary
Modifier and TypeMethodDescriptiongetAbsX()getAbsY()getName()Returns the object's name.Returns the object's window class name.getPath()String[]getWidth()getX()getY()voidSet the object's absolute x-coordinate (left) relative to the parent object (in pixels).voidSet the object's absolute y-coordinate (top) relative to the parent object (in pixels).voidsetAcceleratorKey(StringProperty acceleratorKey) Set the sequence of key combinations that invoke an action associated with the element.voidsetAcceleratorKey(String acceleratorKey) Set the sequence of key combinations that invoke an action associated with the element.voidsetAccessKey(StringProperty accessKey) Set the character that is used to activate the object.voidsetAccessKey(String accessKey) Set the character that is used to activate the object.voidsetAutomationId(StringProperty automationId) Set the ID for an object that is unique among siblings within its container.voidsetAutomationId(String automationId) Set the ID for an object that is unique among siblings within its container.voidsetControlType(StringProperty controlType) Set the UIAPro type for the object.voidsetControlType(String controlType) Set the UIAPro type for the object.voidsetEnabled(Boolean isEnabled) Set Indicates whether the object is enabled.voidsetFrameworkId(StringProperty frameworkId) Set the name of the UI framework, such as Win32, WinForm, or DirectUI.voidsetFrameworkId(String frameworkId) Set the name of the UI framework, such as Win32, WinForm, or DirectUI.voidSet the run-time object's window handle.voidSet the object's height (in pixels).voidsetKeyboardFocus(Boolean hasKeyboardFocus) Set Indicates whether the object has keyboard focus.voidsetKeyboardFocusable(Boolean isKeyboardFocusable) Set Indicates whether the object can accept keyboard focus.voidsetName(StringProperty name) Set the object's name.voidSet the object's name.voidsetNativeClass(StringProperty nativeClass) Set the object's window class name.voidsetNativeClass(String nativeClass) Set the object's window class name.voidsetOffScreen(Boolean isOffScreen) Set Indicates whether the object is Offscreen.voidsetPassword(Boolean isPassword) Set Indicates whether the object contains protected content or a password.voidsetPath(StringProperty path) Set the path in the application's object hierarchy, separated by semicolons.voidSet the path in the application's object hierarchy, separated by semicolons.voidsetProcessId(Integer processId) Set the UIAutomation object process id.voidsetProcessName(StringProperty processName) Set the UIAutomation object process name.voidsetProcessName(String processName) Set the UIAutomation object process name.voidsetStatus(StringProperty status) Set Describes the status of the current object.voidSet Describes the status of the current object.voidsetSupportedPatterns(String[] supportePatterns) Set the list of patterns supported for the test object.voidSet the object's width (in pixels).voidSet the object's x-coordinate (left) relative to the parent object (in pixels).voidSet the object's y-coordinate (top) relative to the parent object (in pixels).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
-
UiObjectBaseDescription
public UiObjectBaseDescription()Initializes a new instance of the UiObjectBaseDescription class. -
UiObjectBaseDescription
-
-
Method Details
-
getX
- Returns:
- The object's x-coordinate (left) relative to the parent object (in pixels).
-
setX
Set the object's x-coordinate (left) relative to the parent object (in pixels).- Parameters:
x- the object's x-coordinate (left)
-
getY
- Returns:
- The object's y-coordinate (top) relative to the parent object (in pixels).
-
setY
Set the object's y-coordinate (top) relative to the parent object (in pixels).- Parameters:
y- the object's y-coordinate (left)
-
getAbsX
- Returns:
- The object's absolute x-coordinate (left) relative to the parent object (in pixels).
-
setAbsX
Set the object's absolute x-coordinate (left) relative to the parent object (in pixels).- Parameters:
absX- the object's absolut x-coordinate (left)
-
getAbsY
- Returns:
- The object's absolute y-coordinate (top) relative to the parent object (in pixels).
-
setAbsY
Set the object's absolute y-coordinate (top) relative to the parent object (in pixels).- Parameters:
absY- the object's absolut y-coordinate (left)
-
getWidth
- Returns:
- The object's width (in pixels).
-
setWidth
Set the object's width (in pixels).- Parameters:
width- the object's width (in pixels)
-
getHeight
- Returns:
- The object's height (in pixels).
-
setHeight
Set the object's height (in pixels).- Parameters:
height- the object's height (in pixels).
-
getProcessName
- Returns:
- The UIAutomation object process name.
-
setProcessName
Set the UIAutomation object process name.- Parameters:
processName- the UIAutomation object process name.
-
setProcessName
Set the UIAutomation object process name.- Parameters:
processName- the UIAutomation object process name.
-
getProcessId
- Returns:
- The UIAutomation object process id.
-
setProcessId
Set the UIAutomation object process id.- Parameters:
processId- the UIAutomation object process id.
-
hasKeyboardFocus
- Returns:
- Indicates whether the object has keyboard focus.
-
setKeyboardFocus
Set Indicates whether the object has keyboard focus.- Parameters:
hasKeyboardFocus- Indicates whether the object has keyboard focus.
-
getHandle
- Returns:
- The run-time object's window handle.
-
setHandle
Set the run-time object's window handle.- Parameters:
handle- the run-time object's window handle.
-
isEnabled
- Returns:
- Indicates whether the object is enabled.
-
setEnabled
Set Indicates whether the object is enabled.- Parameters:
isEnabled- Indicates whether the object is enabled.
-
isKeyboardFocusable
- Returns:
- Indicates whether the object can accept keyboard focus.
-
setKeyboardFocusable
Set Indicates whether the object can accept keyboard focus.- Parameters:
isKeyboardFocusable- Indicates whether the object can accept keyboard focus.
-
isOffScreen
- Returns:
- Indicates whether the object is Offscreen.
-
setOffScreen
Set Indicates whether the object is Offscreen.- Parameters:
isOffScreen- Indicates whether the object is Offscreen.
-
isPassword
- Returns:
- Indicates whether the object contains protected content or a password.
-
setPassword
Set Indicates whether the object contains protected content or a password.- Parameters:
isPassword- Indicates whether the object contains protected content or a password.
-
getStatus
- Returns:
- Describes the status of the current object. For example, an item associated with a contact in a messaging application might be "Busy" or "Connected".
-
setStatus
Set Describes the status of the current object. For example, an item associated with a contact in a messaging application might be "Busy" or "Connected".- Parameters:
status- Describes the status of the current object.
-
setStatus
Set Describes the status of the current object. For example, an item associated with a contact in a messaging application might be "Busy" or "Connected".- Parameters:
status- Describes the status of the current object.
-
getAcceleratorKey
- Returns:
- The sequence of key combinations that invoke an action associated with the element.
-
setAcceleratorKey
Set the sequence of key combinations that invoke an action associated with the element.- Parameters:
acceleratorKey- the sequence of key combinations that invoke an action associated with the element.
-
setAcceleratorKey
Set the sequence of key combinations that invoke an action associated with the element.- Parameters:
acceleratorKey- the sequence of key combinations that invoke an action associated with the element.
-
getAccessKey
- Returns:
- The character that is used to activate the object.
-
setAccessKey
Set the character that is used to activate the object.- Parameters:
accessKey- the character that is used to activate the object.
-
setAccessKey
Set the character that is used to activate the object.- Parameters:
accessKey- the character that is used to activate the object.
-
getAutomationId
- Returns:
- The ID for an object that is unique among siblings within its container.
-
setAutomationId
Set the ID for an object that is unique among siblings within its container.- Parameters:
automationId- the ID for an object that is unique among siblings within its container.
-
setAutomationId
Set the ID for an object that is unique among siblings within its container.- Parameters:
automationId- the ID for an object that is unique among siblings within its container.
-
getControlType
- Returns:
- The UIAPro type for the object.
-
setControlType
Set the UIAPro type for the object.- Parameters:
controlType- the UIAPro type for the object.
-
setControlType
Set the UIAPro type for the object.- Parameters:
controlType- the UIAPro type for the object.
-
getFrameworkId
- Returns:
- The name of the UI framework, such as Win32, WinForm, or DirectUI.
-
setFrameworkId
Set the name of the UI framework, such as Win32, WinForm, or DirectUI.- Parameters:
frameworkId- the name of the UI framework.
-
setFrameworkId
Set the name of the UI framework, such as Win32, WinForm, or DirectUI.- Parameters:
frameworkId- the name of the UI framework.
-
getSupportedPatterns
- Returns:
- The list of patterns supported for the test object.
-
setSupportedPatterns
Set the list of patterns supported for the test object.- Parameters:
supportePatterns- the list of patterns supported for the test object.
-
getPath
- Returns:
- The path in the application's object hierarchy, separated by semicolons. Objects in the path are represented by their name or automationId property values.
-
setPath
Set the path in the application's object hierarchy, separated by semicolons. Objects in the path are represented by their name or automationId property values.- Parameters:
path- the path in the application's object hierarchy.
-
setPath
Set the path in the application's object hierarchy, separated by semicolons. Objects in the path are represented by their name or automationId property values.- Parameters:
path- the path in the application's object hierarchy.
-
getNativeClass
Returns the object's window class name.- Returns:
- the object's window class name.
-
setNativeClass
Set the object's window class name.- Parameters:
nativeClass- the object's window class name.
-
setNativeClass
Set the object's window class name.- Parameters:
nativeClass- the object's window class name.
-
getName
Returns the object's name.- Returns:
- the object's name.
-
setName
Set the object's name.- Parameters:
name- the object's name.
-
setName
Set the object's name.- Parameters:
name- the object's name.
-