Finds the specified text within this Response,
starting from the end of the content,
and specifying whether the search will be case-sensitive.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.7.98 (1.0.0.0)
Syntax
public virtual bool Rfind( ExtractionCursor cursor, string text, bool caseSensitive )
Parameters
- cursor
- Type: Facilita.Native ExtractionCursor
An ExtractionCursor object to store the success/failure of the action, and the index in the response at which the match was found.
- text
- Type: System String
The text to search for.
- caseSensitive
- Type: System Boolean
true if the search should be case-sensitive.
Return Value
true if the specified text was found in this Response; otherwise, false.Remarks
Examples
Response response = request.Send(); ExtractionCursor cursor = new ExtractionCursor(); if (!response.Rfind(cursor, "page loaded successfully", false)) { Warn("Page did not load successfully: " + cursor.ErrorMessage); NextIteration(); } WriteMessage(string.Format("Text found at position {0}", cursor.Index));
See Also