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.

ExtractRegularExpression.Required Property

 

Gets or sets a value that indicates whether the extraction fails if the text represented by RegularExpression does not exist in the HtmlDocument.

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

[DefaultValueAttribute(true)]
public bool Required { get; set; }

Property Value

Type: System.Boolean

true if the request fails if the text represented by RegularExpression does not exist; otherwise, false. The default value is true.

Return to top
Show: