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
public class ExtractFormField extends ExtractionRule
public class ExtractFormField extends 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.

System.Object
   Microsoft.VisualStudio.TestTools.WebTesting.ExtractionRule
    Microsoft.VisualStudio.TestTools.WebTesting.Rules.ExtractFormField

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