Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ExtractAttributeValue::TagName Property

 

Gets or sets the name of the tag that contains the attribute you want to extract.

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

public:
property String^ TagName {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The name of a tag contains the attribute value to extract.

This is used to identify the tag that contains the attribute whose value that you want to extract. Consider the following HTML:

<input name="MyTextBox" type="text" id="TextBox1" />

<input type="submit" name="Button1" value="Button" id="Button1" />

If you want to extract the id attribute value, set the TagName property to input and the AttributeName property to id.

This returns the value TextBox1, because TextBox1 is the id value in the first input tag found. To extract the id from the second tag, see MatchAttributeName and MatchAttributeValue.

Return to top
Show: