Response VerifyContains Method (String, ActionType)C# API
Determines whether the content of this Response contains the specified text, specifying what action to take in case of failure.

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

public virtual bool VerifyContains(
	string text,
	ActionType failAction


Type: System String
The text to look for.
Type: Facilita.Fc.Runtime ActionType
The action to take if text cannot be found.

Return Value

true if the text was found; otherwise, false.

Note Note
The search is case-sensitive.

The following example demonstrates verifying that a string appears within the content of an HTML Response, moving to the next iteration if the text could not be found.
Response response = request.Send();

// Check that the login succeeded, and move onto the next iteration if it did not.
response.VerifyContains("Login successful", ActionType.ACT_NEXT_ITERATION);
See Also