Gets the first child with the given name.

Namespace:  QAliber.Engine.Controls
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public virtual UIControlBase this[
	string name
] { get; }
Visual Basic (Declaration)
Public Overridable ReadOnly Default Property Item ( _
	name As String _
) As UIControlBase
Visual C++
public:
virtual property UIControlBase^ default[String^ name] {
	UIControlBase^ get (String^ name);
}

Parameters

name
Type: System..::.String
The name of the child control

Return Value

If the name was found, the first control found with that name is returned, otherwise null

Examples

CopyC#
UIAButton button1 = null;
UIAPane win = Desktop.UIA[@"", @"Shell_TrayWnd", @"UIAPane"] as UIAPane;
button1 = win["Start"] as UIAButton;
button1.Click();

See Also