wdio-wait-for / element/elementToBeClickable
▸ elementToBeClickable(selectorOrElement
): () => Promise
<boolean
>
A condition for checking an element is visible and clickable
example
browser.waitUntil(elementToBeClickable('.links'));
Name | Type | Description |
---|---|---|
selectorOrElement |
StringOrElement |
The selector or element to check |
fn
An expected condition that returns a promise representing whether the element is clickable.
▸ (): Promise
<boolean
>
A condition for checking an element is visible and clickable
example
browser.waitUntil(elementToBeClickable('.links'));
Promise
<boolean
>
An expected condition that returns a promise representing whether the element is clickable.