Retrieve list of controls within requested scope relative to this control, and has the requested properties values.
Namespace:
QAliber.Engine.Controls
Assembly:
QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Return Value
UIControl[] with the matching properties found withing the expected scope or null if controls not found
Examples
CopyC#
UIAPane programManager = Desktop.UIA[@"Program Manager", @"Progman", @"UIAPane"] as UIAPane;
FindProperties [] props = new FindProperties[]{FindProperties.Visible,FindProperties.Type};
object [] vals = new object[]{true,"UIAListItem"};
UIControl [] myShortcuts = programManager.FindAll(
System.Windows.Automation.TreeScope.Descendants,
props, vals) ;
if (myShortcuts != null)
myShortcuts[0].DoubleClick();
else
MessageBox.Show("shortcut Not found");
See Also