We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

ExtractAttributeValue Class

Extract the value of an attribute from a specified HTML tag.

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

public class ExtractAttributeValue extends ExtractionRule

This extraction rule searches for the first occurrence of an attribute value located in an HTML tag that meets the extraction criteria. The pass/fail status of this test is determined by whether the test is required to find the attribute value to pass and if the criteria are met. To use this extraction rule, an HTML tag name and the attribute to find must be specified with the TagName and AttributeName properties. Additional criteria can be identified with the MatchAttributeName and MatchAttributeValue properties.


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