UITestControl Methods

Include Protected Members
Include Inherited Members

The UITestControl type exposes the following members.

Methods

  Name Description
Public method CaptureImage Captures the image of the UITestControl. The UITestControl must be present on the screen.
Public method CopyFrom Creates a UITestControl object that references the same element on the user interface as the original UITestControl.
Public method DrawHighlight Highlights the control.
Public method EnsureClickable() Scrolls the user interface to make sure that the control is clickable.
Public method EnsureClickable(Point) Scrolls the user interface to a specific point to make sure that the control is clickable.
Public method Equals Determines whether the specified UITestControl is equal to the current UITestControl. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find Finds the UITestControl.
Public method FindMatchingControls Returns a collection of all UITestControls that match the specified SearchProperties and FilterProperties.
Public method GetChildren Returns a collection of all first-level children of the current UITestControl.
Public method GetClickablePoint Returns a clickable point on the control.
Public method GetHashCode Returns a unique value that represents the current UITestControl instance. (Overrides Object.GetHashCode().)
Public method GetParent Returns the parent of the current UITestControl.
Public method GetProperty Gets the value of the specified property.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method GetUITestControlsForSearch Returns an array of UITestControl objects that will be used for searching.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetFocus Sets the keyboard focus to the UITestControl.
Public method SetProperty Sets the value of a given property.
Public method ToString Returns a String that represents the current UITestControl. (Overrides Object.ToString().)
Public method TryGetClickablePoint Returns a clickable point in the UITestControl. If the control is not clickable, this method returns false.
Public methodStatic member WaitForCondition<T>(T, Predicate<T>) Blocks the current thread until the specified condition is met, or until the default time-out expires.
Public methodStatic member WaitForCondition<T>(T, Predicate<T>, Int32) Blocks the current thread until the specified condition is met, or until the specified time-out expires.
Public method WaitForControlCondition(Predicate<UITestControl>) Blocks the current thread until this control meets the specified condition, or until the default time-out expires.
Public method WaitForControlCondition(Predicate<UITestControl>, Int32) Blocks the current thread until this control meets the specified condition, or until the specified time-out expires.
Public method WaitForControlEnabled() Blocks the current thread until this control is enabled, or until the default time-out expires.
Public method WaitForControlEnabled(Int32) Blocks the current thread until this control is enabled, or until the specified time-out expires.
Public method WaitForControlExist() Blocks the current thread until this control occurs in the user interface, or until the default time-out expires.
Public method WaitForControlExist(Int32) Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires.
Public method WaitForControlNotExist() Blocks the current thread until this control no longer exists in the user interface, or until the default time-out expires.
Public method WaitForControlNotExist(Int32) Blocks the current thread until this control no longer occurs in the user interface, or until the specified time-out expires.
Public method WaitForControlPropertyEqual(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.
Public method WaitForControlPropertyEqual(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.
Public method WaitForControlPropertyNotEqual(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.
Public method WaitForControlPropertyNotEqual(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.
Public method WaitForControlReady() Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the default time-out expires.
Public method WaitForControlReady(Int32) Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the specified time-out expires.

Top

See Also

Reference

UITestControl Class

Microsoft.VisualStudio.TestTools.UITesting Namespace