Response VerifyResult Method (HttpStatus, ActionType)C# API
Verify that the response code of this Response matches the specifed expectedResult, and takes the specified action if it does not.

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

public bool VerifyResult(
	HttpStatus expectedResult,
	ActionType action
)

Parameters

expectedResult
Type: Facilita.Web HttpStatus
The HTTP status code that this response is expected to have.
action
Type: Facilita.Fc.Runtime ActionType
The action to take if the HTTP status does not match the expectedResult.

Return Value

true if the HTTP status of this Response object matches the expectedResult; otherwise, false.
Remarks

When a script is generated from a trace, calls to VerifyResult() are inserted after every Send  method call and the result from the recorded responses are automatically inserted as parameters.
See Also