Response Rfind Method (ExtractionCursor, String, ActionType, Boolean)C# API
Finds the specified text within this Response, starting from the end of the content, specifying whether the search will be case-sensitive, and what action to take in case of failure.

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

public virtual bool Rfind(
	ExtractionCursor cursor,
	string text,
	ActionType failAction,
	bool caseSensitive


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.
Type: System String
The text to search for.
Type: Facilita.Fc.Runtime ActionType
The action to take if text cannot be found.
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.

Information about the success/failure of this method will be stored in the ExtractionCursor object passed.

The following example demonstrates finding text within a HTML Response, moving to the next iteration if the text could not be found.
Response response = request.Send();
ExtractionCursor cursor = new ExtractionCursor();

// If the text cannot be found, move onto the next iteration 
response.Rfind(cursor, "page loaded successfully", ActionType.ACT_NEXT_ITERATION, false);
WriteMessage(string.Format("Text found at position {0}", cursor.Index));
See Also