Gets the first child with a name and id that matches the regular expression given by the parameters
Namespace:
QAliber.Engine.Controls
Assembly:
QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- name
- Type: System..::.String
The pattern to match the children's names against
- id
- Type: System..::.String
The pattern to match the children's ids against
- useRegex
- Type: System..::.Boolean
If set to true, the 'name' and 'id' parameters will be treated as regular expression.
If set to false, it is identical to calling UIControl[name, id]
Return Value
If the name and id were found, the control with that name is returned, otherwise null
Examples
CopyC#
UIAListItem myFolder = null;
UIAListBox desktopWindowShortcuts = Desktop.UIA[@"Program Manager", @"Progman", @"UIAPane"][@"Desktop", @"SysListView32", @"1"] as UIAListBox;
myFolder = desktopWindowShortcuts["My*","*", true] as UIAListItem;
myFolder.DoubleClick();
See Also