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 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 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()
void
Set the object's absolute x-coordinate (left) relative to the parent object (in pixels).void
Set the object's absolute y-coordinate (top) relative to the parent object (in pixels).void
setAcceleratorKey
(StringProperty acceleratorKey) Set the sequence of key combinations that invoke an action associated with the element.void
setAcceleratorKey
(String acceleratorKey) Set the sequence of key combinations that invoke an action associated with the element.void
setAccessKey
(StringProperty accessKey) Set the character that is used to activate the object.void
setAccessKey
(String accessKey) Set the character that is used to activate the object.void
setAutomationId
(StringProperty automationId) Set the ID for an object that is unique among siblings within its container.void
setAutomationId
(String automationId) Set the ID for an object that is unique among siblings within its container.void
setControlType
(StringProperty controlType) Set the UIAPro type for the object.void
setControlType
(String controlType) Set the UIAPro type for the object.void
setEnabled
(Boolean isEnabled) Set Indicates whether the object is enabled.void
setFrameworkId
(StringProperty frameworkId) Set the name of the UI framework, such as Win32, WinForm, or DirectUI.void
setFrameworkId
(String frameworkId) Set the name of the UI framework, such as Win32, WinForm, or DirectUI.void
Set the run-time object's window handle.void
Set the object's height (in pixels).void
setKeyboardFocus
(Boolean hasKeyboardFocus) Set Indicates whether the object has keyboard focus.void
setKeyboardFocusable
(Boolean isKeyboardFocusable) Set Indicates whether the object can accept keyboard focus.void
setName
(StringProperty name) Set the object's name.void
Set the object's name.void
setNativeClass
(StringProperty nativeClass) Set the object's window class name.void
setNativeClass
(String nativeClass) Set the object's window class name.void
setOffScreen
(Boolean isOffScreen) Set Indicates whether the object is Offscreen.void
setPassword
(Boolean isPassword) Set Indicates whether the object contains protected content or a password.void
setPath
(StringProperty path) Set the path in the application's object hierarchy, separated by semicolons.void
Set the path in the application's object hierarchy, separated by semicolons.void
setProcessId
(Integer processId) Set the UIAutomation object process id.void
setProcessName
(StringProperty processName) Set the UIAutomation object process name.void
setProcessName
(String processName) Set the UIAutomation object process name.void
setStatus
(StringProperty status) Set Describes the status of the current object.void
Set Describes the status of the current object.void
setSupportedPatterns
(String[] supportePatterns) Set the list of patterns supported for the test object.void
Set the object's width (in pixels).void
Set the object's x-coordinate (left) relative to the parent object (in pixels).void
Set 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, 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
-
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.
-