WebKit2.FindController.prototype.search

function search(search_text: String, find_options: Number(guint32), max_match_count: Number(guint)): void {
    // Gjs wrapper for webkit_find_controller_search()
}
  

Looks for search_text in the WebKit2.WebView associated with find_controller since the beginning of the document highlighting up to max_match_count matches. The outcome of the search will be asynchronously provided by the WebKit2.FindController::found-text and WebKit2.FindController::failed-to-find-text signals.

To look for the next or previous occurrences of the same text with the same find options use WebKit2.FindController.prototype.search_next and/or WebKit2.FindController.prototype.search_previous. The WebKit2.FindController will use the same text and options for the following searches unless they are modified by another call to this method.

Note that if the number of matches is higher than max_match_count then WebKit2.FindController::found-text will report %G_MAXUINT matches instead of the actual number.

Callers should call WebKit2.FindController.prototype.search_finish to finish the current search operation.

search_text

the text to look for

find_options

a bitmask with the WebKit2.FindOptions used in the search

max_match_count

the maximum number of matches allowed in the search