The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITechnologyElement.TopLevelElement Property


Gets or sets the top-level window for this element.

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

public abstract UITechnologyElement TopLevelElement { get; set; }

Top-level windows are typically children of the desktop. If this property is not set, the test framework sets the value to the topmost ancestor of the element, and ignores the desktop as an ancestor.

Return to top