Partilhar via


HtmlControl Class

Provides a base class for controls to test the user interface (UI) of Web pages.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlControl
      More...

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

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public Class HtmlControl _
    Inherits UITestControl
[CLSCompliantAttribute(true)]
public class HtmlControl : UITestControl
[CLSCompliantAttribute(true)]
public ref class HtmlControl : public UITestControl
[<CLSCompliantAttribute(true)>]
type HtmlControl =  
    class 
        inherit UITestControl 
    end
public class HtmlControl extends UITestControl

The HtmlControl type exposes the following members.

Constructors

  Name Description
Public method HtmlControl() Initializes a new instance of the HtmlControl class.
Public method HtmlControl(UITestControl) Initializes a new instance of the HtmlControl class.

Top

Properties

  Name Description
Public property AccessKey Gets the value of the AccessKey attribute of this control.
Public property BoundingRectangle (Inherited from UITestControl.)
Public property Class Gets the value of the Class attribute of this control.
Public property ClassName (Inherited from UITestControl.)
Public property Container (Inherited from UITestControl.)
Public property ControlDefinition Gets the definition of the control in the HTML page.
Public property ControlType (Inherited from UITestControl.)
Public property Enabled (Inherited from UITestControl.)
Public property Exists (Inherited from UITestControl.)
Public property FilterProperties (Inherited from UITestControl.)
Public property FriendlyName (Inherited from UITestControl.)
Public property HasFocus (Inherited from UITestControl.)
Public property Height (Inherited from UITestControl.)
Public property HelpText Gets the value of the HelpText attribute of this control.
Public property Id Gets the value of the ID attribute of this control.
Public property InnerText Gets the text content of this control.
Public property IsTopParent (Inherited from UITestControl.)
Public property Left (Inherited from UITestControl.)
Public property Name (Inherited from UITestControl.)
Public property NativeElement (Inherited from UITestControl.)
Public property SearchConfigurations (Inherited from UITestControl.)
Public property SearchProperties (Inherited from UITestControl.)
Protected property SearchPropertiesSetExplicitly (Inherited from UITestControl.)
Public property State (Inherited from UITestControl.)
Public property TagInstance Gets the index of the control in the collection of controls on the page that has the same tag name.
Public property TagName Gets the tag name of this control.
Public property TechnologyName (Inherited from UITestControl.)
Public property Title Gets the value of the Title attribute of this control.
Public property Top (Inherited from UITestControl.)
Public property TopParent (Inherited from UITestControl.)
Public property Type Gets the value of the Type attribute of this control.
Public property ValueAttribute Gets the value of the Value attribute of this control.
Public property Width (Inherited from UITestControl.)
Public property WindowHandle (Inherited from UITestControl.)
Public property WindowTitles (Inherited from UITestControl.)

Top

Methods

  Name Description
Public method CaptureImage (Inherited from UITestControl.)
Public method CopyFrom (Inherited from UITestControl.)
Public method DrawHighlight (Inherited from UITestControl.)
Public method EnsureClickable() (Inherited from UITestControl.)
Public method EnsureClickable(Point) (Inherited from UITestControl.)
Public method EnsureClickable(Point) (Inherited from UITestControl.)
Public method Equals (Inherited from UITestControl.)
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 (Inherited from UITestControl.)
Public method FindMatchingControls (Inherited from UITestControl.)
Public method GetChildren (Inherited from UITestControl.)
Public method GetClickablePoint (Inherited from UITestControl.)
Public method GetHashCode (Inherited from UITestControl.)
Public method GetParent (Inherited from UITestControl.)
Public method GetProperty (Inherited from UITestControl.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method GetUITestControlsForSearch (Inherited from UITestControl.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetFocus (Inherited from UITestControl.)
Public method SetProperty (Inherited from UITestControl.)
Public method ToString (Inherited from UITestControl.)
Public method TryFind (Inherited from UITestControl.)
Public method TryGetClickablePoint(Point%) (Inherited from UITestControl.)
Public method TryGetClickablePoint(Point%) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>, Int32) (Inherited from UITestControl.)
Public method WaitForControlEnabled() (Inherited from UITestControl.)
Public method WaitForControlEnabled(Int32) (Inherited from UITestControl.)
Public method WaitForControlExist() (Inherited from UITestControl.)
Public method WaitForControlExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlNotExist() (Inherited from UITestControl.)
Public method WaitForControlNotExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlReady() (Inherited from UITestControl.)
Public method WaitForControlReady(Int32) (Inherited from UITestControl.)

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls Namespace

UITestControl

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlControl
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlAreaHyperlink
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlButton
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlCell
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlCheckBox
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlComboBox
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlCustom
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDiv
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlEdit
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlEditableDiv
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlEditableSpan
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlFrame
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlHeaderCell
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlHyperlink
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlIFrame
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlImage
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlInputButton
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlLabel
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlList
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlListItem
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlMedia
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlProgressBar
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlRadioButton
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlRow
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlScrollBar
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlSlider
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlSpan
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlTable
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlTextArea