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