wdio-wait-for / element/invisibilityOf
▸ invisibilityOf(selectorOrElement
): () => Promise
<boolean
>
A condition for checking the element to be invisible
example
browser.waitUntil(invisibilityOf('.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 invisible.
▸ (): Promise
<boolean
>
A condition for checking the element to be invisible
example
browser.waitUntil(invisibilityOf('.header'));
Promise
<boolean
>
An expected condition that returns a promise representing whether the element is invisible.