Package com.hp.lft.sdk.uiapro
Interface UiObjectBase
- All Superinterfaces:
Clickable,DoubleClickable,SupportSendKeys,TestObject,TestObjectDescriber,TopLevelObject
- All Known Subinterfaces:
AppBar,Button,Calendar,CheckBox,ComboBox,Document,Edit,Grid,GridItem,Group,Header,HeaderItem,Image,Link,List,ListItem,Menu,MenuBar,MenuItem,Pane,ProgressBar,RadioButton,ScrollBar,SemanticZoom,Separator,Slider,Spinner,SplitButton,StatusBar,TabControl,TabItem,Table,Text,Thumb,TitleBar,ToolBar,ToolTip,TreeView,TreeViewItem,UiObject,Window
Base interface of all UIAPro test objects
-
Method Summary
Modifier and TypeMethodDescriptiongetAbsX()getAbsY()intgetName()getPath()<TAncestor extends UiObjectBase>
TAncestor[]getUIAAncestors(Class<TAncestor> type, Description description, Integer minDepthLevel, Integer maxDepthLevel) getUIAAncestors(Integer minDepthLevel, Integer maxDepthLevel) <TChild extends UiObjectBase>
TChild[]getUIAChildren(Class<TChild> type, Description description) <TDescendant extends UiObjectBase>
TDescendant[]getUIADescendants(Class<TDescendant> type, Description description, Integer minDepthLevel, Integer maxDepthLevel) getUIADescendants(Integer minDepthLevel, Integer maxDepthLevel) getWidth()getX()getY()Methods inherited from interface com.hp.lft.sdk.uiapro.DoubleClickable
doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.SupportSendKeys
sendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
-
Method Details
-
getX
- Returns:
- The object's x-coordinate (left) relative to the parent object (in pixels).
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getY
- Returns:
- The object's y-coordinate (top) relative to the parent object (in pixels).
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getAbsX
- Returns:
- The object's absolut x-coordinate (left) relative to the parent object (in pixels).
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getAbsY
- Returns:
- The object's absolute y-coordinate (top) relative to the parent object (in pixels).
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getWidth
- Returns:
- The object's width (in pixels).
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getHeight
- Returns:
- The object's height (in pixels).
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getProcessName
- Returns:
- The UIAutomation object process name.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getProcessId
- Returns:
- The UIAutomation object process id.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
hasKeyboardFocus
- Returns:
- Indicates whether the object has keyboard focus.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getHandle
- Returns:
- The run-time object's window handle.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
isEnabled
- Returns:
- Indicates whether the object is enabled.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
isKeyboardFocusable
- Returns:
- Indicates whether the object can accept keyboard focus.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
isOffScreen
- Returns:
- Indicates whether the object is Offscreen.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
isPassword
- Returns:
- Indicates whether the object contains protected content or a password.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
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".
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getAcceleratorKey
- Returns:
- The sequence of key combinations that invoke an action associated with the element.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getAccessKey
- Returns:
- The character that is used to activate the object.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getAutomationId
- Returns:
- The ID for an object that is unique among siblings within its container.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getControlType
- Returns:
- The UIAPro type for the object.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getFrameworkId
- Returns:
- The name of the UI framework, such as Win32, WinForm, or DirectUI.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getSupportedPatterns
- Returns:
- The list of patterns supported for the test object.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
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.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getNativeClass
- Returns:
- The class name assigned to the test object.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getName
- Returns:
- The name of the control.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getExpandCollapsePattern
- Returns:
- The expand collapse pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getGridItemPattern
- Returns:
- The grid item pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getGridPattern
- Returns:
- The grid pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getInvokePattern
- Returns:
- The invoke pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getLegacyIAccessiblePattern
- Returns:
- The legacy accessible pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getRangeValuePattern
- Returns:
- The range value pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getScrollItemPattern
- Returns:
- The scroll item pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getScrollPattern
- Returns:
- The scroll pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getSelectionItemPattern
- Returns:
- The selection item pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getSelectionPattern
- Returns:
- The selection pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getTableItemPattern
- Returns:
- The table item pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getTablePattern
- Returns:
- The table pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getTextPattern
- Returns:
- The text pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getTogglePattern
- Returns:
- The toggle pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getValuePattern
- Returns:
- The value pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getWindowPattern
- Returns:
- The window pattern, providing access to the relevant methods and properties.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getUIAAncestors
<TAncestor extends UiObjectBase> TAncestor[] getUIAAncestors(Class<TAncestor> type, Description description, Integer minDepthLevel, Integer maxDepthLevel) throws GeneralLeanFtException, CloneNotSupportedException - Type Parameters:
TAncestor- The generic type of the ancestor test object.- Parameters:
type- The class type of the ancestor test object.description- A description containing the set of properties and values that should be common to all objects that are returned.minDepthLevel- The first level in the hierarchy, counting up from the object itself, from which to return ancestor objects. If specified, only ancestor objects from the specified level and upwards are returned.maxDepthLevel- The highest level in the hierarchy, counting up from the object itself, from which to return ancestor objects. If specified, only ancestor objects up to and including the specified level are returned.- Returns:
- The collection of all the parent objects in the object's hierarchy that match the specified description, between the specified minimum and maximum depth levels. The object's immediate parent is level 1, its parent is level 2, and so on.
- Throws:
GeneralLeanFtException- if error occurs during execution.CloneNotSupportedException- if clone error occurs during execution.
-
getUIAAncestors
UiObjectBase[] getUIAAncestors(Integer minDepthLevel, Integer maxDepthLevel) throws GeneralLeanFtException - Parameters:
minDepthLevel- The first level in the hierarchy, counting up from the object itself, from which to return ancestor objects. If specified, only ancestor objects from the specified level and upwards are returned.maxDepthLevel- The highest level in the hierarchy, counting up from the object itself, from which to return ancestor objects. If specified, only ancestor objects up to and including the specified level are returned.- Returns:
- The collection of all the parent objects in the object's hierarchy, between the specified minimum and maximum depth levels. The object's immediate parent is level 1, its parent is level 2, and so on.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getUIAAncestors
- Returns:
- The collection of all the parent objects in the object's hierarchy, up to the root.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getUIAChildren
<TChild extends UiObjectBase> TChild[] getUIAChildren(Class<TChild> type, Description description) throws GeneralLeanFtException, CloneNotSupportedException - Type Parameters:
TChild- The generic type of the child test object.- Parameters:
type- The class type of the child test object.description- A description containing the set of properties and values that should be common to all objects that are returned.- Returns:
- The collection of immediate children contained within the object that match the specified description.
- Throws:
GeneralLeanFtException- if error occurs during execution.CloneNotSupportedException- if clone error occurs during execution.
-
getUIAChildren
- Returns:
- The collection of immediate children contained within the object.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getUIADescendants
<TDescendant extends UiObjectBase> TDescendant[] getUIADescendants(Class<TDescendant> type, Description description, Integer minDepthLevel, Integer maxDepthLevel) throws GeneralLeanFtException, CloneNotSupportedException - Type Parameters:
TDescendant- The generic type of the descendant test object.- Parameters:
type- The class type of the descendant test object.description- A description containing the set of properties and values that should be common to all objects that are returned.minDepthLevel- The first level in the hierarchy, counting down from the object itself, from which to return descendant objects. If specified, only descendant objects from the specified level and downwards are returned.maxDepthLevel- The lowest level in the hierarchy, counting down from the object itself, from which to return descendant objects. If specified, only descendant objects down to and including the specified level are returned.- Returns:
- The collection of all the objects contained or nested beneath the object that match the specified description, between the specified minimum and maximum depth levels. The object's immediate children are level 1, their children are level 2, and so on.
- Throws:
GeneralLeanFtException- if error occurs during execution.CloneNotSupportedException- if clone error occurs during execution.
-
getUIADescendants
UiObjectBase[] getUIADescendants(Integer minDepthLevel, Integer maxDepthLevel) throws GeneralLeanFtException - Parameters:
minDepthLevel- The first level in the hierarchy, counting down from the object itself, from which to return descendant objects. If specified, only descendant objects from the specified level and downwards are returned.maxDepthLevel- The lowest level in the hierarchy, counting down from the object itself, from which to return descendant objects. If specified, only descendant objects down to and including the specified level are returned.- Returns:
- The collection of all the objects contained or nested beneath the object between the specified minimum and maximum depth levels. The object's immediate children are level 1, their children are level 2, and so on.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getUIADescendants
- Returns:
- The collection of all the objects contained or nested beneath the object.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getUIAParent
- Returns:
- The object's immediate parent object. For the root object, which has no parent, null is returned.
- Throws:
GeneralLeanFtException- if error occurs during execution.
-