In this blog, Siddhartha has described Window search and Windowed properties. There a few implications of using Window Search.
- Window Search is applicable only if give Technology Name = MSAA
- If we specify multiple search properties (both windowed and non-windowed), all of them will be honored. i.e the control should match all specified search properties.
// WinEdit is not a window
WinEdit e = new WinEdit(container)
// ControlName is a windowed search property
e.SearchProperties.Add(“ControlName”, “somename”);
or
// ControlId is a windowed search property
e .SearchProperties.Add(“ControlId”, “someid”);
For the code above, e will be bound to a WinWindow which is container for the WinEdit.
In the case above, If you specify other windowed properties (classname or accessiblename) it will fail to search the element.
Remember, Window Search is used whenever we specify any one of the Windowed properties as a Search Property.
Thanks to Siddhartha for clarifying my many questions in this area.