Package com.hp.lft.sdk.winforms
Interface UiObjectBase
- All Superinterfaces:
- Clickable,- DoubleClickable,- EnabledProvider,- LocationInfoProvider,- SupportDragAndDrop,- SupportSendKeys,- SupportsNativeObject,- UiObjectBase,- VisibleProvider,- WaitUntilEnabledProvider,- WaitUntilVisibleProvider
- All Known Subinterfaces:
- Button,- Calendar,- CheckBox,- ComboBox,- EditField,- Editor,- Label,- ListBox,- ListView,- PropertyGrid,- RadioButton,- ScrollBar,- SpinBox,- StatusBar,- TabControl,- Table,- ToolBar,- TreeView,- UiObject,- Window
Base for .NET Windows Forms test objects.
- 
Method SummaryModifier and TypeMethodDescriptionvoidSimulates an event on a .NET object.Returns the full hierarchy of this object with all parent objects.Returns the full type name of this object.The instance's name.<TValue> TValuegetObjectProperty(String propname, Class<TValue> returnType) Returns the value of a test object property.getText()Returns the text associated with this object.Returns the permanent part of the MFC window class.intReturns this object's window identifier.booleanIndicates whether this object's window is a child window.booleanIndicates whether the object's window has an owner window.Methods inherited from interface com.hp.lft.sdk.DoubleClickabledoubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProviderisEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDropdragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportSendKeyssendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.UiObjectBasegetHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMoveMethods inherited from interface com.hp.lft.sdk.VisibleProviderisVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProviderwaitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProviderwaitUntilVisible, waitUntilVisible
- 
Method Details- 
fireEventSimulates an event on a .NET object.- Parameters:
- type- the name of the event to simulate. The list of possible events depends on the object.
- args- the Args argument is passed to the constructor of the event's EventArgs object or the implementing class.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isChildWindowIndicates whether this object's window is a child window.- Returns:
- true if a child window
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isOwnedWindowIndicates whether the object's window has an owner window.- Returns:
- true if has an owner window.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getObjectNameThe instance's name.For example, for myFoo = new fooBar, the object name is myFoo.- Returns:
- the name
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getFullNamePathReturns the full hierarchy of this object with all parent objects.- Returns:
- the hierarchy
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getFullTypeReturns the full type name of this object.- Returns:
- the full type name
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getTextReturns the text associated with this object.- Returns:
- the text
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getWindowClassRegExpReturns the permanent part of the MFC window class.- Returns:
- the permanent part of the MFC window class.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getWindowIdReturns this object's window identifier.- Returns:
- the window ID
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getObjectProperty<TValue> TValue getObjectProperty(String propname, Class<TValue> returnType) throws GeneralLeanFtException Returns the value of a test object property.
 This method can return any property of this control, including custom properties declared in a custom control. - Type Parameters:
- TValue- the generic type of returnType.
- Parameters:
- propname- the name of the test object property.
- returnType- the type of the test object property.
- Returns:
- the property value
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-