The name of the control

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

Syntax

C#
public virtual string Name { get; }
Visual Basic (Declaration)
Public Overridable ReadOnly Property Name As String
Visual C++
public:
virtual property String^ Name {
	String^ get ();
}

Examples

CopyC#
UIAButton startButton = null;
UIAPane win = Desktop.UIA[@"", @"Shell_TrayWnd", @"UIAPane"] as UIAPane;
foreach (UIControlBase control in win.Children)
{
    if (control.Name == "Start")
    {
        startButton = control as UIAButton;
        break;
    }
}
startButton.Click();

See Also