This topic has not yet been rated - Rate this topic

PlaybackSettings.MatchExactHierarchy Property

Gets or sets a value to indicate whether to match the exact hierarchy specified for searching this control.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
public bool MatchExactHierarchy { get; set; }

Property Value

Type: System.Boolean
true if all the ancestors of the control will be searched to locate this control; false if some ancestors will be skipped during the search.

Each control is specified as a hierarchy of containing controls for the search. For example, if the hierarchy of a control is A;B;C;D if A is found but playback fails to find full hierarchy B->C->D under it, then directly search for D under A if this property is set to false.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ