Table of Contents

Interface IUiObjectBase

Namespace
HP.LFT.SDK.Java
Assembly
HP.LFT.SDK.dll

Base interface of all Java test objects.

public interface IUiObjectBase : IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider
Inherited Members
Extension Methods

Properties

AttachedText

The static text attached to the object.

string AttachedText { get; }

Property Value

string

BackgroundColor

The object's background color.

string BackgroundColor { get; }

Property Value

string

ForegroundColor

The object's foreground color.

string ForegroundColor { get; }

Property Value

string

IsFocused

Indicates whether this object has focus.

bool IsFocused { get; }

Property Value

bool

Label

The object's label.

string Label { get; }

Property Value

string

NativeClass

The object's Java class name.

string NativeClass { get; }

Property Value

string

ObjectName

The object's internal name.

string ObjectName { get; }

Property Value

string

Remarks

For example, hpe/controls/my$control

Path

The object's hierarchy (object ancestors).

string Path { get; }

Property Value

string

TagName

The object's Java name.

string TagName { get; }

Property Value

string

Methods

CreateObject(string)

Creates a native object wrapping an instance of a Java object within your application.

dynamic CreateObject(string className)

Parameters

className string

The java class name.

Returns

dynamic

A native object wrapping an instance of a Java object within your application.

CreateObject(string, params object[])

Creates a native object wrapping an instance of a Java object within your application.

dynamic CreateObject(string className, params object[] arguments)

Parameters

className string

The java class name.

arguments object[]

Any arguments required for the object's constructor.

Returns

dynamic

A native object wrapping an instance of a Java object within your application.

FireEvent(IEventInfo)

Triggers an event on the test object. Note: use the EventInfoFactory class to generate the eventInfo argument value.

void FireEvent(IEventInfo eventInfo)

Parameters

eventInfo IEventInfo

the event info describing the event to trigger.

GetObjectProperty<TValue>(string)

Returns the value of a test object property.

TValue GetObjectProperty<TValue>(string propName)

Parameters

propName string

The property name.

Returns

TValue

Type Parameters

TValue

The property type.

Remarks

This method can return any property of this control, including custom properties declared in a custom control.

GetStatics(string)

Get a native object wrapping a Java class capable of accessing static members (methods and fields) of the specified Java class.

dynamic GetStatics(string className)

Parameters

className string

The java class name whose static members you want to access.

Returns

dynamic

A native object wrapping a Java class capable of accessing static members within your application.

SendKeys(string)

Types the specified string into the object in the application, including special keys.

void SendKeys(string input)

Parameters

input string

The string can include constants from Keys class.

SendKeys(string, KeyModifier)

Types the specified string into the test object in the application, including special keys or key modifiers.

void SendKeys(string input, KeyModifier modifiers)

Parameters

input string

The string can include constants from Keys class.

modifiers KeyModifier

A mask of KeyModifier values indicating keys to be pressed and held while the specified string is entered. The keys are released when the SendKeys step is finished.

The Windows Logo modifier is not supported.