Preparing search index...
The search index is not available
@bicycle-codes/dom
@bicycle-codes/dom
waitForText
FunctionwaitForText
wait
For
Text
(
args
,
parentElement
?
)
:
Promise
<
Element
|
null
>
Look for the given text within the given parent element. Return the element containing the text.
Parameters
args
:
string
|
Partial
<
{
multipleTags
:
boolean
;
regex
:
RegExp
;
text
:
string
;
timeout
:
number
;
}
>
parentElement
:
Element
= document.body
Returns
Promise
<
Element
|
null
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@bicycle-codes/dom
Loading...
Look for the given text within the given parent element. Return the element containing the text.