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