Gets the first child with the given name and id

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

Syntax

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

Parameters

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

Return Value

If name and id were found, the control is returned, otherwise null

Remarks

The id is constant and does not change from run to run.

Examples

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

See Also