Optionalselector: K
The CSS selector to use
Optionalargs: { timeout?: number; visible?: boolean } | null
Configuration args
Optionallambda: () => Element | null
An optional function that returns the
element. Used if the selector is not provided.
A promise that
resolves to the found element. A tag name selector resolves to that
tag's element type. Any other selector resolves to E, which defaults
to HTMLElement.
Wait for an element to appear in the DOM, then resolve the promise. Either a query selector or lambda function must be provided.
Optionalselector: string | null
The CSS selector to use
Optionalargs: { timeout?: number; visible?: boolean } | null
Configuration args
Optionallambda: () => Element | null
An optional function that returns the
element. Used if the selector is not provided.
A promise that
resolves to the found element. A tag name selector resolves to that
tag's element type. Any other selector resolves to E, which defaults
to HTMLElement.
Wait for an element to appear in the DOM, then resolve the promise. Either a query selector or lambda function must be provided.