We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

SmartMatchOptions Enumeration

This enumeration lets you communicate how the IUITechnologyManager instructs the framework to search for the most likely results when a match cannot be found.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

public enum SmartMatchOptions

Member nameDescription
NoneDo not use smart matching.
TopLevelWindowUse smart match for top-level windows only. The framework uses the smart algorithm to intelligently match the specified top-level window title with other similar top-level windows.
ControlUse smart match for controls only. If this option is specified, the framework uses the smart algorithm to intelligently match controls that have slightly different properties than those that are specified in the search string.