wdio-wait-for / element/presenceOf
▸ presenceOf(selectorOrElement): () => Promise<boolean>
A condition for checking that an element is present on the DOM of a page
example
browser.waitUntil(presenceOf('.header'));
| Name | Type | Description |
|---|---|---|
selectorOrElement |
StringOrElement |
The selector or element to check |
fn
An expected condition that returns a promise representing whether the element is present on the DOM.
▸ (): Promise<boolean>
A condition for checking that an element is present on the DOM of a page
example
browser.waitUntil(presenceOf('.header'));
Promise<boolean>
An expected condition that returns a promise representing whether the element is present on the DOM.