Verifies that the title of this Response page matches the specified title.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax
Parameters
- title
- Type: System String
The title that this Response object is expected to contain.
Return Value
true if the title of this Response object matches the specified title; otherwise, false.Remarks
Note |
---|
If the method returns false, likely causes may include a dropped network connection or an error page returned by the server. |
When a script is generated from a trace, calls to VerifyTitle() are inserted after every Send method call and the page titles from the recorded responses are automatically inserted as parameters.
Examples
Response response = request.Send(); if (!response.VerifyTitle("Login successful")) { // Login failed - we didn't get the page title we expected NextIteration(); }
See Also