Information
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.

UITestControl Methods

 

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

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.

Return to top
Show: