wdio-wait-for / element/stalenessOf
▸ stalenessOf(selectorOrElement): () => Promise<boolean>
A condition for checking that an element is not present on the DOM of a page
example
browser.waitUntil(stalenessOf('.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 not present on the DOM.
▸ (): Promise<boolean>
A condition for checking that an element is not present on the DOM of a page
example
browser.waitUntil(stalenessOf('.header'));
Promise<boolean>
An expected condition that returns a promise representing whether the element is not present on the DOM.