Interface IUiObjectBase
Base for .NET Windows Forms test objects.
public interface IUiObjectBase : IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject
- Inherited Members
- Extension Methods
Properties
FullNamePath
The full hierarchy of this object with all parent objects.
string FullNamePath { get; }
Property Value
FullType
The full type name of this object.
string FullType { get; }
Property Value
IsChildWindow
Indicates whether this object's window is a child window.
bool IsChildWindow { get; }
Property Value
IsOwnedWindow
Indicates whether this object's window has an owner window.
bool IsOwnedWindow { get; }
Property Value
ObjectName
The instance's name.
string ObjectName { get; }
Property Value
Remarks
For example, for
myFoo = new fooBar, the ObjectName is myFoo.
Text
The text associated with this object.
string Text { get; }
Property Value
WindowClassRegExp
The permanent part of the MFC window class.
string WindowClassRegExp { get; }
Property Value
WindowId
This object's window identifier.
int WindowId { get; }
Property Value
Methods
FireEvent(string, params object[])
Simulates an event on a .NET object.
void FireEvent(string type, params object[] args)
Parameters
typestringThe name of the event to simulate. The list of possible events depends on the object.
argsobject[]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.
TValue GetObjectProperty<TValue>(string propName)
Parameters
propNamestringThe name of the test object property.
Returns
- TValue
Type Parameters
TValueThe type of the test object property.
Remarks
This method can return any property of this control, including custom properties declared in a custom control.