Interface IUiObjectBase
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
BackgroundColor
The object's background color.
string BackgroundColor { get; }
Property Value
ForegroundColor
The object's foreground color.
string ForegroundColor { get; }
Property Value
IsFocused
Indicates whether this object has focus.
bool IsFocused { get; }
Property Value
Label
The object's label.
string Label { get; }
Property Value
NativeClass
The object's Java class name.
string NativeClass { get; }
Property Value
ObjectName
The object's internal name.
string ObjectName { get; }
Property Value
Remarks
For example, hpe/controls/my$control
Path
The object's hierarchy (object ancestors).
string Path { get; }
Property Value
TagName
The object's Java name.
string TagName { get; }
Property Value
Methods
CreateObject(string)
Creates a native object wrapping an instance of a Java object within your application.
dynamic CreateObject(string className)
Parameters
classNamestringThe 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
classNamestringThe java class name.
argumentsobject[]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
eventInfoIEventInfothe event info describing the event to trigger.
GetObjectProperty<TValue>(string)
Returns the value of a test object property.
TValue GetObjectProperty<TValue>(string propName)
Parameters
propNamestringThe property name.
Returns
- TValue
Type Parameters
TValueThe 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
classNamestringThe 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
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
inputstringThe string can include constants from Keys class.
modifiersKeyModifierA 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.