Open topic with navigation

IUiObjectBase Interface
Base interface of all Java test objects.

C# Syntax

    public interface IUiObjectBase : HP.LFT.SDK.IClickable, HP.LFT.SDK.IDoubleClickable, HP.LFT.SDK.ILocationInfoProvider, HP.LFT.SDK.ISupportsNativeObject

Public Properties

| Name | Description
--- | --- | ---
| AbsoluteLocation | This object's coordinates relative to the screen (in pixels). 0,0 is the top-left corner of the (primary) monitor. (Inherited from HP.LFT.SDK.ILocationInfoProvider)
| AttachedText | The static text attached to the object.
| BackgroundColor | The object's background color.
| ForegroundColor | The object's foreground color.
| IsEnabled | Indicates whether this object is enabled. (Inherited from HP.LFT.SDK.IEnabledProvider)
| IsFocused | Indicates whether this object has focus.
| IsVisible | Indicates whether this object is visible. (Inherited from HP.LFT.SDK.IVisibleProvider)
| Label | The object's label.
| Location | This object's coordinates relative to the parent window in pixels. (Inherited from HP.LFT.SDK.ILocationInfoProvider)
| NativeClass | The object's Java class name.
| NativeObject | Returns the native application object that is represented by this test object instance, enabling you to access the native properties and methods provided by that object. (Inherited from HP.LFT.SDK.ISupportsNativeObject)
| ObjectName | The object's internal name.
| Path | The object's hierarchy (object ancestors).
| Size | This object's size in pixels. (Inherited from HP.LFT.SDK.ILocationInfoProvider)
| TagName | The object's Java name.

Top
Public Methods

| Name | Description
--- | --- | ---
| Click | Clicks on this object. (Inherited from HP.LFT.SDK.IClickable)
| CreateObject | Overloaded. Creates a native object wrapping an instance of a Java object within your application. Supported in LeanFT versions 14.53 and later.
| DoubleClick | Double-clicks on this object using the specified MouseButton. (Inherited from HP.LFT.SDK.IDoubleClickable)
| FireEvent | Triggers an event on the test object. Note: use the EventInfoFactory class to generate the eventInfo argument value.
| GetStatics | Gets a native object wrapping a Java class capable of accessing static members (methods and fields) of the specified Java class. Supported in LeanFT versions 14.53 and later. C# Syntax
    Dynamic GetStatics(
       string className
    )
Parameters classname - The java class name whose static members you want to access. Return value A native object wrapping a Java class capable of accessing static members within your application.
| SendKeys | Overloaded. Types the specified string into the test object in the application, including special keys or key modifiers.

Top