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

ExtractFormField Class

Extracts the value of a form field attribute and adds it to the WebTestContext.

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

public class ExtractFormField : ExtractionRule

This extraction rule extracts form fields that have a name equal to the value set by Name. Consider the following HTML:

<input name="TextBox1" type="text" value="my first field" id="TextBox1" />

<input name="TextBox2" type="text" value="my 2nd field" id="TextBox2" />

The value of the TextBox1 field will be put in the context under the name specified by ContextParameterName.


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