Export (0) Print
Expand All

HtmlDocument Class

Provides access to the set of HTML tags in an HTML response body.

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.HtmlDocument

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

[SerializableAttribute]
public class HtmlDocument

The HtmlDocument type exposes the following members.

  NameDescription
Public methodHtmlDocumentInitializes a new instance of the HtmlDocument class. This constructor takes a string and uses it as the document.
Top

  NameDescription
Public propertyDependentRequestUrlsGets the URLs for dependent requests found in the HTML document.
Public propertyHtmlTagsGets all the tags that are available in the document.
Top

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
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 methodGetFilteredHtmlTagsParses HtmlDocument and returns an iterator with all the HTML tags found that match the tags that are contained in the tagFilter array.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetParserOffsetTrackingSets the parser mode for tracking tag and attribute value offsets.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

This is used by extraction and validation rules to access the contents of an HTML document.

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

Community Additions

ADD
Show:
© 2015 Microsoft