UITestControl Class

UITestControl Class

 

UITestControl provides the ability to locate controls on a User Interface. It provides properties and methods which are generic to controls across technologies.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)


[CLSCompliantAttribute(true)]
public class UITestControl

NameDescription
System_CAPS_pubmethodUITestControl()

Initializes a new instance of the UITestControl class.

System_CAPS_pubmethodUITestControl(UITestControl)

Initializes a new instance of the UITestControl class and specifies the container for locating controls.

NameDescription
System_CAPS_pubpropertyBoundingRectangle

Gets the Bounding rectangle for this control.

System_CAPS_pubpropertyClassName

Gets the class name for this control.

System_CAPS_pubpropertyContainer

Gets or sets the container of this UITestControl.

System_CAPS_pubpropertyControlType

Gets the type of the UI Control.

System_CAPS_pubpropertySystem_CAPS_staticDesktop

Gets the UI Control for the desktop.

System_CAPS_pubpropertyEnabled

Gets a value that indicates whether this control is enabled.

System_CAPS_pubpropertyExists

Gets a value that indicates whether this control exists on the user interface.

System_CAPS_pubpropertyFilterProperties

Gets the property-value pair collection that is used to disambiguate a control.

System_CAPS_pubpropertyFriendlyName

Gets the name of this control to use in the user interface.

System_CAPS_pubpropertyHasFocus

Gets a value that indicates whether this control currently has the focus in the user interface.

System_CAPS_pubpropertyHeight

Gets height of the control.

System_CAPS_pubpropertyIsTopParent

Gets a value that indicates whether this control is the top-level element.

System_CAPS_pubpropertyLeft

Gets the x-coordinate of the left edge of the control.

System_CAPS_pubpropertyName

Gets the name of this control.

System_CAPS_pubpropertyNativeElement

Gets the native technology element that corresponds to this control.

System_CAPS_pubpropertySearchConfigurations

Gets or sets search configurations.

System_CAPS_pubpropertySearchProperties

Gets the property-value pair collection that is used to identify a control.

System_CAPS_protpropertySearchPropertiesSetExplicitly

Gets a value that indicates whether the search properties for this control were set by the user in the user interface.

System_CAPS_pubpropertyState

Gets the state of the control.

System_CAPS_pubpropertyTechnologyName

Gets or sets the technology framework that implements this control.

System_CAPS_pubpropertyTop

Gets the x-coordinate of the top edge of the control.

System_CAPS_pubpropertyTopParent

Gets the top-level parent of this control.

System_CAPS_pubpropertyWidth

Gets width of the control.

System_CAPS_pubpropertyWindowHandle

Gets the window handle for this control.

System_CAPS_pubpropertyWindowTitles

Gets a collection of the window titles of the top-level window.

NameDescription
System_CAPS_pubmethodCaptureImage()

Captures the image of the UITestControl. The UITestControl must be present on the screen.

System_CAPS_pubmethodCopyFrom(UITestControl)

Creates a UITestControl object that references the same element on the user interface as the original UITestControl.

System_CAPS_pubmethodDrawHighlight()

Highlights the control.

System_CAPS_pubmethodEnsureClickable()

Scrolls the user interface to make sure that the control is clickable.

System_CAPS_pubmethodEnsureClickable(Point)

Scrolls the user interface to a specific point to make sure that the control is clickable.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified UITestControl is equal to the current UITestControl.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFind()

Finds the UITestControl.

System_CAPS_pubmethodFindMatchingControls()

Returns a collection of all UITestControls that match the specified SearchProperties and FilterProperties.

System_CAPS_pubmethodGetChildren()

Returns a collection of all first-level children of the current UITestControl.

System_CAPS_pubmethodGetClickablePoint()

Returns a clickable point on the control.

System_CAPS_pubmethodGetHashCode()

Returns a unique value that represents the current UITestControl instance.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetParent()

Returns the parent of the current UITestControl.

System_CAPS_pubmethodGetProperty(String)

Gets the value of the specified property.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodGetUITestControlsForSearch()

Returns an array of UITestControl objects that will be used for searching.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetFocus()

Sets the keyboard focus to the UITestControl.

System_CAPS_pubmethodSetProperty(String, Object)

Sets the value of a given property.

System_CAPS_pubmethodToString()

Returns a String that represents the current UITestControl.(Overrides Object.ToString().)

System_CAPS_pubmethodTryFind()

Tries to find the control on the user interface.

System_CAPS_pubmethodTryGetClickablePoint(Point)

Returns a clickable point in the UITestControl. If the control is not clickable, this method returns false.

System_CAPS_pubmethodSystem_CAPS_staticWaitForCondition<T>(T, Predicate<T>)

Blocks the current thread until the specified condition is met, or until the default time-out expires.

System_CAPS_pubmethodSystem_CAPS_staticWaitForCondition<T>(T, Predicate<T>, Int32)

Blocks the current thread until the specified condition is met, or until the specified time-out expires.

System_CAPS_pubmethodWaitForControlCondition(Predicate<UITestControl>)

Blocks the current thread until this control meets the specified condition, or until the default time-out expires.

System_CAPS_pubmethodWaitForControlCondition(Predicate<UITestControl>, Int32)

Blocks the current thread until this control meets the specified condition, or until the specified time-out expires.

System_CAPS_pubmethodWaitForControlEnabled()

Blocks the current thread until this control is enabled, or until the default time-out expires.

System_CAPS_pubmethodWaitForControlEnabled(Int32)

Blocks the current thread until this control is enabled, or until the specified time-out expires.

System_CAPS_pubmethodWaitForControlExist()

Blocks the current thread until this control occurs in the user interface, or until the default time-out expires.

System_CAPS_pubmethodWaitForControlExist(Int32)

Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires.

System_CAPS_pubmethodWaitForControlNotExist()

Blocks the current thread until this control no longer is in the user interface, or until the default time-out expires.

System_CAPS_pubmethodWaitForControlNotExist(Int32)

Blocks the current thread until this control no longer occurs in the user interface, or until the specified time-out expires.

System_CAPS_pubmethodWaitForControlPropertyEqual(String, Object)

Blocks the current thread until the specified property of this control is equal to the specified value, or until the default time-out expires.

System_CAPS_pubmethodWaitForControlPropertyEqual(String, Object, Int32)

Blocks the current thread until the specified property of this control is equal to the specified value, or until the specified time-out expires.

System_CAPS_pubmethodWaitForControlPropertyNotEqual(String, Object)

Blocks the current thread until the specified property of this control is not equal to the specified value, or until the default time-out expires.

System_CAPS_pubmethodWaitForControlPropertyNotEqual(String, Object, Int32)

Blocks the current thread until the specified property of this control is not equal to the specified value, or until the specified time-out expires.

System_CAPS_pubmethodWaitForControlReady()

Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the default time-out expires.

System_CAPS_pubmethodWaitForControlReady(Int32)

Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the specified time-out expires.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(UITestControl, UITestControl)

Indicates whether two UITestControl instances are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(UITestControl, UITestControl)

Indicates whether two UITestControl instances are not equal.

No content here will be updated; please do not add material here.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft