The text to search.
Optionaloptions: SearchOptions
Search options.
OptionalisUserTriggered: boolean
Whether to open the search panel and fill its input; true by default.
Optionalconfig: { shouldDispatchUIActions?: boolean }
Extra settings.
OptionalshouldDispatchUIActions?: booleanWhen false, the search runs without changing the UI: the search panel and its input are left as they are.
A Promise that resolves when the search finishes.
Searches the whole document and highlights all results. Resolves when the search finishes (or is cleared). By default (isUserTriggered) the search panel opens and the search term is written into its input. Options: caseSensitive / wholeWord / wildcard / regex.