Table of Contents

Interface IUiObjectBase

Base for .NET Windows Forms test objects.

Namespace: HP.LFT.SDK.WinForms
Assembly: HP.LFT.SDK.dll
Syntax
public interface IUiObjectBase : IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject

Properties

FullNamePath

The full hierarchy of this object with all parent objects.

Declaration
string FullNamePath { get; }
Property Value
Type Description
string

FullType

The full type name of this object.

Declaration
string FullType { get; }
Property Value
Type Description
string

IsChildWindow

Indicates whether this object's window is a child window.

Declaration
bool IsChildWindow { get; }
Property Value
Type Description
bool

IsOwnedWindow

Indicates whether this object's window has an owner window.

Declaration
bool IsOwnedWindow { get; }
Property Value
Type Description
bool

ObjectName

The instance's name.

Declaration
string ObjectName { get; }
Property Value
Type Description
string
Remarks

For example, for

myFoo = new fooBar
, the ObjectName is myFoo.

Text

The text associated with this object.

Declaration
string Text { get; }
Property Value
Type Description
string

WindowClassRegExp

The permanent part of the MFC window class.

Declaration
string WindowClassRegExp { get; }
Property Value
Type Description
string

WindowId

This object's window identifier.

Declaration
int WindowId { get; }
Property Value
Type Description
int

Methods

FireEvent(string, params object[])

Simulates an event on a .NET object.

Declaration
void FireEvent(string type, params object[] args)
Parameters
Type Name Description
string type

The name of the event to simulate. The list of possible events depends on the object.

object[] args

The Args argument is passed to the constructor of the event's EventArgs object or the implementing class.

GetObjectProperty<TValue>(string)

Returns the value of a test object property.

Declaration
TValue GetObjectProperty<TValue>(string propName)
Parameters
Type Name Description
string propName

The name of the test object property.

Returns
Type Description
TValue
Type Parameters
Name Description
TValue

The type of the test object property.

Remarks

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

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)