Determines whether the content of this Response contains the specified text,
specifying what action to take in case of failure.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.7.98 (1.0.0.0)
Syntax
public virtual bool VerifyContains( string text, ActionType failAction )
Parameters
- text
- Type: System String
The text to look for.
- failAction
- Type: Facilita.Fc.Runtime ActionType
The action to take if text cannot be found.
Return Value
true if the text was found; otherwise, false.Remarks
Note |
---|
The search is case-sensitive. |
Examples
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