Response Find Method (ExtractionCursor, String)C# API
Finds the specified text within this Response.

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

public virtual bool Find(
	ExtractionCursor cursor,
	string text
)

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.

Return Value

true if the specified text was found in this Response; otherwise, false.
Remarks

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

Note Note
The search is case-sensitive.

Examples

The following example demonstrates finding text within a HTML Response.
Response response = request.Send();
ExtractionCursor cursor = new ExtractionCursor();
if (!response.Find(cursor, "page loaded successfully"))
{
    Warn("Page did not load successfully: " + cursor.ErrorMessage);
    NextIteration();
}

WriteMessage(string.Format("Text found at position {0}", cursor.Index));
See Also