Export (0) Print
Expand All

HtmlSpan Class

Represents a span control for Web page user interface (UI) testing.

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

[CLSCompliantAttribute(true)]
public class HtmlSpan : HtmlControl

The HtmlSpan type exposes the following members.

  NameDescription
Public methodHtmlSpan()Initializes a new instance of the HtmlSpan class.
Public methodHtmlSpan(UITestControl)Initializes a new instance of the HtmlSpan class.
Top

  NameDescription
Public propertyAccessKeyGets the value of the AccessKey attribute of this control. (Inherited from HtmlControl.)
Public propertyBoundingRectangleGets the Bounding rectangle for this control. (Inherited from UITestControl.)
Public propertyClassGets the value of the Class attribute of this control. (Inherited from HtmlControl.)
Public propertyClassNameGets the class name for this control. (Inherited from UITestControl.)
Public propertyContainerGets or sets the container of this UITestControl. (Inherited from UITestControl.)
Public propertyControlDefinitionGets the definition of the control in the HTML page. (Inherited from HtmlControl.)
Public propertyControlTypeGets the type of the UI Control. (Inherited from UITestControl.)
Public propertyDisplayTextGets the text that appears in this span control.
Public propertyEnabledGets a value that indicates whether this control is enabled. (Inherited from UITestControl.)
Public propertyExistsGets a value that indicates whether this control exists on the user interface. (Inherited from UITestControl.)
Public propertyFilterPropertiesGets the property-value pair collection that is used to disambiguate a control. (Inherited from UITestControl.)
Public propertyFriendlyNameGets the name of this control to use in the user interface. (Inherited from UITestControl.)
Public propertyHasFocusGets a value that indicates whether this control currently has the focus in the user interface. (Inherited from UITestControl.)
Public propertyHeightGets height of the control. (Inherited from UITestControl.)
Public propertyHelpTextGets the value of the HelpText attribute of this control. (Inherited from HtmlControl.)
Public propertyIdGets the value of the ID attribute of this control. (Inherited from HtmlControl.)
Public propertyInnerTextGets the text content of this control. (Inherited from HtmlControl.)
Public propertyIsTopParentGets a value that indicates whether this control is the top-level element. (Inherited from UITestControl.)
Public propertyLeftGets the x-coordinate of the left edge of the control. (Inherited from UITestControl.)
Public propertyNameGets the name of this control. (Inherited from UITestControl.)
Public propertyNativeElementGets the native technology element that corresponds to this control. (Inherited from UITestControl.)
Public propertySearchConfigurationsGets or sets search configurations. (Inherited from UITestControl.)
Public propertySearchPropertiesGets the property-value pair collection that is used to identify a control. (Inherited from UITestControl.)
Protected propertySearchPropertiesSetExplicitlyGets a value that indicates whether the search properties for this control were set by the user in the user interface. (Inherited from UITestControl.)
Public propertyStateGets the state of the control. (Inherited from UITestControl.)
Public propertyTagInstanceGets the index of the control in the collection of controls on the page that has the same tag name. (Inherited from HtmlControl.)
Public propertyTagNameGets the tag name of this control. (Inherited from HtmlControl.)
Public propertyTechnologyNameGets or sets the technology framework that implements this control. (Inherited from UITestControl.)
Public propertyTitleGets the value of the Title attribute of this control. (Inherited from HtmlControl.)
Public propertyTopGets the x-coordinate of the top edge of the control. (Inherited from UITestControl.)
Public propertyTopParentGets the top-level parent of this control. (Inherited from UITestControl.)
Public propertyTypeGets the value of the Type attribute of this control. (Inherited from HtmlControl.)
Public propertyValueAttributeGets the value of the Value attribute of this control. (Inherited from HtmlControl.)
Public propertyWidthGets width of the control. (Inherited from UITestControl.)
Public propertyWindowHandleGets the window handle for this control. (Inherited from UITestControl.)
Public propertyWindowTitlesGets a collection of the window titles of the top-level window. (Inherited from UITestControl.)
Top

  NameDescription
Public methodCaptureImageCaptures the image of the UITestControl. The UITestControl must be present on the screen. (Inherited from UITestControl.)
Public methodCopyFromCreates a UITestControl object that references the same element on the user interface as the original UITestControl. (Inherited from UITestControl.)
Public methodDrawHighlightHighlights the control. (Inherited from UITestControl.)
Public methodEnsureClickable()Scrolls the user interface to make sure that the control is clickable. (Inherited from UITestControl.)
Public methodEnsureClickable(Point)Scrolls the user interface to a specific point to make sure that the control is clickable. (Inherited from UITestControl.)
Public methodEqualsDetermines whether the specified UITestControl is equal to the current UITestControl. (Inherited from UITestControl.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindFinds the UITestControl. (Inherited from UITestControl.)
Public methodFindMatchingControlsReturns a collection of all UITestControls that match the specified SearchProperties and FilterProperties. (Inherited from UITestControl.)
Public methodGetChildrenReturns a collection of all first-level children of the current UITestControl. (Inherited from UITestControl.)
Public methodGetClickablePointReturns a clickable point on the control. (Inherited from UITestControl.)
Public methodGetHashCodeReturns a unique value that represents the current UITestControl instance. (Inherited from UITestControl.)
Public methodGetParentReturns the parent of the current UITestControl. (Inherited from UITestControl.)
Public methodGetPropertyGets the value of the specified property. (Inherited from UITestControl.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetUITestControlsForSearchReturns an array of UITestControl objects that will be used for searching. (Inherited from UITestControl.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetFocusSets the keyboard focus to the UITestControl. (Inherited from UITestControl.)
Public methodSetPropertySets the value of a given property. (Inherited from UITestControl.)
Public methodToStringReturns a String that represents the current UITestControl. (Inherited from UITestControl.)
Public methodTryFindTries to find the control on the user interface. (Inherited from UITestControl.)
Public methodTryGetClickablePointReturns a clickable point in the UITestControl. If the control is not clickable, this method returns false. (Inherited from UITestControl.)
Public methodWaitForControlCondition(Predicate<UITestControl>)Blocks the current thread until this control meets the specified condition, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlCondition(Predicate<UITestControl>, Int32)Blocks the current thread until this control meets the specified condition, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlEnabled()Blocks the current thread until this control is enabled, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlEnabled(Int32)Blocks the current thread until this control is enabled, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlExist()Blocks the current thread until this control occurs in the user interface, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlExist(Int32)Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlNotExist()Blocks the current thread until this control no longer is in the user interface, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlNotExist(Int32)Blocks the current thread until this control no longer occurs in the user interface, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlPropertyEqual(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. (Inherited from UITestControl.)
Public methodWaitForControlPropertyEqual(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. (Inherited from UITestControl.)
Public methodWaitForControlPropertyNotEqual(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. (Inherited from UITestControl.)
Public methodWaitForControlPropertyNotEqual(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. (Inherited from UITestControl.)
Public methodWaitForControlReady()Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlReady(Int32)Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the specified time-out expires. (Inherited from UITestControl.)
Top

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