Retrieve list of controls within requested scope relative to this control, and has the requested property value.
Namespace:
QAliber.Engine.ControlsAssembly: QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public List<UIControlBase> FindAll( TreeScope scope, string property, Object val ) |
| Visual Basic (Declaration) |
|---|
Public Function FindAll ( _ scope As TreeScope, _ property As String, _ val As Object _ ) As List(Of UIControlBase) |
| Visual C++ |
|---|
public: List<UIControlBase^>^ FindAll( TreeScope scope, String^ property, Object^ val ) |
Parameters
- scope
- Type: System.Windows.Automation..::.TreeScope
[Missing <param name="scope"/> documentation for "M:QAliber.Engine.Controls.UIControlBase.FindAll(System.Windows.Automation.TreeScope,System.String,System.Object)"]
- property
- Type: System..::.String
[Missing <param name="property"/> documentation for "M:QAliber.Engine.Controls.UIControlBase.FindAll(System.Windows.Automation.TreeScope,System.String,System.Object)"]
- val
- Type: System..::.Object
[Missing <param name="val"/> documentation for "M:QAliber.Engine.Controls.UIControlBase.FindAll(System.Windows.Automation.TreeScope,System.String,System.Object)"]
Return Value
List of UIControlBase with the matching property found within the expected scope or null if controls not found
Examples
UIAPane programManager = Desktop.UIA[@"Program Manager", @"Progman", @"UIAPane"] as UIAPane; //Since shortcuts is 2 level below the scope is Descendants UIControl [] myShortcuts = programManager.FindAll( System.Windows.Automation.TreeScope.Descendants, FindProperties.Type, "UIAListItem") ; if (myShortcuts != null)//not found above myShortcuts[0].DoubleClick(); else MessageBox.Show("shortcut Not found");