Gets or sets an additional attribute name that must be found in the HTML tag that contains the attribute value to extract. Used in conjunction with MatchAttributeValue.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
This property, in conjunction with MatchAttributeValue, provides additional information for specifying the attribute to extract.
Consider the following HTML:
<input name="Name" type="text" id="TextBox1" size="25" />
<input name="Email" type="text" id="TextBox2" size="25" />
<input name="Password" type="password" id="TextBox3" size="25" />
Notice that all three tags in the HTML are input tags, and contain an id attribute. To extract the attribute from the correct tag, you must provide additional information. Set the property to name, and the MatchAttributeValue property to Email. Now only one tag satisfies the specified criteria, and the attribute will be extracted from that tag.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.