Gets the first child with the given name, id and classname
Namespace:
QAliber.Engine.ControlsAssembly: QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public UIControlBase this[ string name, string className, string id ] { get; } |
| Visual Basic (Declaration) |
|---|
Public ReadOnly Default Property Item ( _ name As String, _ className As String, _ id As String _ ) As UIControlBase |
| Visual C++ |
|---|
public: property UIControlBase^ default[String^ name, String^ className, String^ id] { UIControlBase^ get (String^ name, String^ className, String^ id); } |
Parameters
- name
- Type: System..::.String
The name of the child control
- className
- Type: System..::.String
The class name of the child control
- id
- Type: System..::.String
The id of the child control, if you want to look only for name and classname you can pass null
Return Value
If name, classname and id were found, the control is returned, otherwise null
Examples
UIAButton startButton = null; UIAPane win = Desktop.UIA[@"", @"Shell_TrayWnd", @"UIAPane"] as UIAPane; startButton = win["Start","Button","304"] as UIAButton; startButton.Click();