Response VerifyContains Method (String)C# API
Determines whether the content of this Response contains the specified text.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax

public virtual bool VerifyContains(
	string text
)

Parameters

text
Type: System String
The text to look for.

Return Value

true if the text was found; otherwise, false.
Remarks

Note Note
The search is case-sensitive.
Examples

The following example demonstrates verifying that a string appears within the content of an HTML Response.
Response response = request.Send();

// Check that the login succeeded. 
if (!response.VerifyContains("Login successful"))
{
    Error("Login failed");
    NextIteration();
}
See Also