Package com.hp.lft.sdk.java
Interface UiObjectBase
- All Superinterfaces:
- Clickable,- DoubleClickable,- EnabledProvider,- LocationInfoProvider,- SupportsNativeObject,- VisibleProvider,- WaitUntilEnabledProvider,- WaitUntilVisibleProvider
- All Known Subinterfaces:
- Applet,- Button,- Calendar,- CheckBox,- Dialog,- Editor,- ExpandBar,- InternalFrame,- Label,- Link,- List,- Menu,- RadioButton,- Slider,- SpinBox,- TabControl,- Table,- ToolBar,- TreeView,- TreeViewTable,- UiObject,- Window
public interface UiObjectBase
extends Clickable, DoubleClickable, LocationInfoProvider, SupportsNativeObject, WaitUntilEnabledProvider, WaitUntilVisibleProvider
Base interface of all Java test objects.
- 
Method SummaryModifier and TypeMethodDescriptioncreateObject(String className) Creates a NativeObject wrapping an instance of a Java object within your application.createObject(String className, Object... arguments) Creates a NativeObject wrapping an instance of a Java object within your application.voidTriggers an event on the test object.Returns the static text attached to this object.Returns the object's background color.Returns the object's foreground color.getLabel()Returns the object's label.Returns the object's Java class name.Returns test object's ObjectName.<TValue> TValuegetObjectProperty(String propname, Class<TValue> returnType) Returns the value of a test object property.getPath()Returns the object's hierarchy (object ancestors).getStatics(String className) Get a native object wrapping a Java class capable of accessing static members (methods and fields) of the specified Java class.Returns the object's Java name.booleanIndicates whether this object has the focus.voidTypes the specified string into the object in the application.voidsendKeys(String input, EnumSet<KeyModifier> modifiers) Types the specified string into the test object, including special keys or key modifiers.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.SupportsNativeObjectgetNativeObjectMethods 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- 
isFocusedIndicates whether this object has the focus.- Returns:
- true if has focus.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
fireEventTriggers an event on the test object.- Parameters:
- eventInfo- Use the- EventInfoFactoryclass to generate the eventInfo argument value.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getAttachedTextReturns the static text attached to this object.- Returns:
- the static text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getBackgroundColorReturns the object's background color.- Returns:
- the object's background color.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getForegroundColorReturns the object's foreground color.- Returns:
- the object's foreground color.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getObjectNameReturns test object's ObjectName. Given the statement "EditBox newEditBox = new EditBox(0,0)", the object name is "newEditBox".- Returns:
- the instance variable name.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getLabelReturns the object's label.- Returns:
- the object's label.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getPathReturns the object's hierarchy (object ancestors).- Returns:
- the object's hierarchy (object ancestors).
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getTagNameReturns the object's Java name.- Returns:
- the object's Java name.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getNativeClassReturns the object's Java class name.- Returns:
- the object's Java class name.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
sendKeysTypes the specified string into the test object, including special keys or key modifiers.- Parameters:
- input- the string to type in the object. The string can include constants from the- Keysclass.
- modifiers- a mask of values indicating keys to be pressed and held while the specified string is entered. For the list of modifiers, see documentation for java.awt.event.InputEvent.
 The keys are released when the SendKeys step is finished.
 The WINDOWS_LOGO modifier is not supported in Java test objects.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
sendKeysTypes the specified string into the object in the application.- Parameters:
- input- the string to type in the object. The string can include constants from the- Keysclass.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
createObjectCreates a NativeObject wrapping an instance of a Java object within your application.- Parameters:
- className- the java class name.
- arguments- any arguments required for the object's constructor.
- Returns:
- a NativeObject wrapping an instance of a Java object within your application.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
createObjectCreates a NativeObject wrapping an instance of a Java object within your application.- Parameters:
- className- the java class name.
- Returns:
- a NativeObject wrapping an instance of a Java object within your application.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getStaticsGet a native object wrapping a Java class capable of accessing static members (methods and fields) of the specified Java class.- Parameters:
- className- the java class name whose static members you want to access.
- Returns:
- a NativeObject wrapping a Java class capable of accessing static members within your application.
- 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
 
 
-