ExtractAttributeValue Members

Include Protected Members
Include Inherited Members

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

The ExtractAttributeValue type exposes the following members.

Constructors

 

Name

Description

Public method

ExtractAttributeValue

Initializes a new instance of the ExtractAttributeValue class.

Top

Methods

 

Name

Description

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Public method

Extract

Extracts the value of an attribute if a match is found. (Overrides ExtractionRule.Extract(Object, ExtractionEventArgs).)

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

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

AttributeName

Gets or sets a value representing the name of the attribute that has the value to extract.

Public property

ContextParameterName

Gets or sets the context name of the extracted property. (Inherited from ExtractionRule.)

Public property

HtmlDecode

Gets or sets a value that indicates whether the extracted value should be HTML decoded before the value is placed in the Web test context.

Public property

Index

Public property

MatchAttributeName

Gets or sets an additional attribute name that must be found in the HTML tag containing the attribute value to extract. Used in conjunction with MatchAttributeValue.

Public property

MatchAttributeValue

Gets or sets the value of an additional attribute that must be found in the HTML tag containing the attribute value to extract. Used in conjunction with MatchAttributeName.

Public property

Required

Gets or sets a value that indicates whether the extraction rule should fail if the value to be extracted is not found in the response.

Public property

RuleDescription

Obsolete. This method is no longer used. Use the DisplayNameAttribute on the class to set a description for this rule. (Inherited from ExtractionRule.)

Public property

RuleName

Obsolete. This method is no longer used. Use the DisplayNameAttribute on the class to set a display name for this rule. (Inherited from ExtractionRule.)

Public property

TagName

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

Top

See Also

Reference

ExtractAttributeValue Class

Microsoft.VisualStudio.TestTools.WebTesting.Rules Namespace