@substrate-system/dom
Preparing search index...
waitForText
Function waitForText
waitForText
(
args
:
|
string
|
Partial
<
{
multipleTags
:
boolean
;
regex
:
RegExp
;
text
:
string
;
timeout
:
number
;
}
,
>
,
parentElement
?:
Element
,
)
:
Promise
<
null
|
HTMLElement
>
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
<
null
|
HTMLElement
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@substrate-system/dom
Loading...
Look for the given text within the given parent element. Return the element containing the text.